Boost logo

Boost :

Subject: Re: [boost] Regression test relying on undefined compiler behavior (c++11)
From: Kim Barrett (kab.conundrums_at_[hidden])
Date: 2014-04-23 18:42:33


On Apr 23, 2014, at 4:48 PM, Chris Cooper <chris.cooper_at_[hidden]> wrote:
> 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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk