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
> 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

Boost list run by bdawes at, gregod at, cpdaniel at, john at