Boost logo

Boost :

From: Björn Karlsson (Bjorn.Karlsson_at_[hidden])
Date: 2002-09-26 09:48:00


> From: Gennaro Prota [mailto:gennaro_prota_at_[hidden]]
> Sent: den 23 september 2002 19:48
> To: boost_at_[hidden]
> Subject: [boost] Don't do that! I won't... but why?
>
>
> Hi everybody,
>
> that's the usual trivial question I ask every now and then. The docs
> for the BOOST_NO_LIMITS macro state (emphasis mine):
>
>
> **Never check for this symbol in library code**; always
> include <boost/limits.hpp>, which guarantees to provide
> std::numeric_limits.
>
> Why?
>
>
> Genny.

If you need to check for the availability of numeric_limits, that supposedly
means that you intend to use it; and there's already a working solution in
place, namely boost/limits.hpp. As it already does The Right Thing, there's
no need to ever check for BOOST_NO_LIMITS.

As I didn't write those notes, this is only my interpretation, of course.

Cheers,
Bjorn Karlsson


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