|
Boost : |
From: Cromwell Enage (sponage_at_[hidden])
Date: 2005-10-18 17:46:49
--- 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/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk