
18 Oct
2005
18 Oct
'05
10:46 p.m.
--- Reece Dunn wrote:
If you want to retain the portability to older compilers, you can use the enum trick for < 32-bits and then do
#if COMPILER_IS_NOT_BROKEN
template< int b1, int b2, ..., int b8 > struct binary_int { typedef uint64_t type; static const type value = ...; };
#endif
Or you can use #include <boost/config.hpp> #include <boost/cstdint.hpp> template <...> struct binary_int { BOOST_STATIC_CONSTANT(uint64_t, value = ...); }; Cromwell D. Enage __________________________________ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/