From: John Maddock (john_at_[hidden])
Date: 2005-10-19 04:41:48
> template< int b1, int b2 >
> struct binary_int
> typedef unsigned short type;
> static const type value = ...;
Guys, please, we have BOOST_STATIC_CONSTANT for this:
BOOST_STATIC_CONSTANT(type, value = x);
We also have config-macros to detect the presence of long long and whether
64-bit integers can be used in integral-constant-expressions.
For portablity you should use long long and the uLL suffix, and not the
Microsoft-specific ui64 suffix (versions of VC++ that don't support long
long, don't support 64-bit constant expressions anyway so you don't loose
anything by going down this route).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk