Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-07-12 08:40:42


Hi,

I recently added specializations of numeric_limits<__int64> and
numeric_limits<unsigned __int64> to boost/limits.hpp for MSVC6 support.
However, I'm finding that more than one compiler supplies a 64 bit integer
type without corresponding specializations of numeric_limits<>.

I'd like to suggest two things:

1. A boost config macro we can use to detect this condition

2. the implementation details used to implement std::numeric_limits<> in
boost/detail/limits.hpp should stop using names reserved to the C++
implementation and instead be moved to namespace boost::detail in a
separate file. Then boost/limits.hpp could generate the missing definitions
for the appropriate compilers.

Comments?

-Dave

+---------------------------------------------------------------+
                  David Abrahams
      C++ Booster (http://www.boost.org) O__ ==
      Pythonista (http://www.python.org) c/ /'_ ==
  resume: http://users.rcn.com/abrahams/resume.html (*) \(*) ==
          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