Boost logo

Boost :

From: John Maddock (jm_at_[hidden])
Date: 2002-10-18 05:49:25


> It seems that there should be a way to get 64-bit integer support into
> integer_traits.hpp on MSVC. It looks like the only real problem is the
> missing feature of class constants, and the fact that integer_traits is
> using enums (which can't hold const_max and const_min values).
>
> But if there were specializations on the detail::integer_traits_base for
MS
> 64-bit types, the constants could be declared in-class as __int64 but
> defined out-of-class (still in the header), safely. It's not as pretty as
> BOOST_STATIC_CONSTANT, but wouldn't it work?

Not really, those members are intended for use inside integral constant
expressions (otherwise you can just use std::numeric_limits<>::max()), so
defining them out of line defeats the whole point of providing them in the
first place.

John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm


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