Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-01-29 22:45:57


How should the BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS macro interact with
boost/limits.hpp?
In order to suppress warnings generated by numeric_cast with MinGW, I had to
change checks to:

#if !defined(BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS) ||
defined(BOOST_SGI_CPP_LIMITS)

...which looks at the #include guard for boost/limits (ick). I think it
would be a mistake to turn off BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS inside
limits.hpp because of ODR implications. Maybe we need another macro that
says whether we have the constants after including boost/limits.hpp?

-Dave

===================================================
  David Abrahams, C++ library designer for hire
 resume: http://users.rcn.com/abrahams/resume.html

        C++ Booster (http://www.boost.org)
          email: david.abrahams_at_[hidden]
===================================================


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