
5 Feb
2013
5 Feb
'13
12:27 a.m.
Hi Marshall,
or, even better, to: struct unsigned_integral_max_value : public mpl::integral_c<UnsignedIntegralChannel,std::numeric_limits<UnsignedIntegralChannel>::max()> {};
Either of those should solve your problem, I think (depending on your standard library)
Just the heads up. Your std::numeric_limits<...>::max() doesn't compile with Visual Studio 2010. Thanks to Nathan, I changed it to: struct unsigned_integral_max_value : public mpl::integral_c<UnsignedIntegralChannel,integer_traits< UnsignedIntegralChannel>::const_max> {}; This now compiles with both clang and Visual Studio. Christian