23 Apr
2014
23 Apr
'14
10:42 p.m.
On Apr 23, 2014, at 4:48 PM, Chris Cooper
After the builds finally chugged through the build server, I see that std::numeric_limits<Number>::min() and std::numeric_limits<Number>::max() are not constant expressions with clang++ unless c++11 is enabled, so my second idea won’t quite work.
Try boost::integer_traits<Number>::const_min / const_max. Defined in boost/integer_traits.hpp.