
here it what I use it for: I have a class which has a member function for each type. e.g. #if BOOST_HAS_LONG_LONG save(long long); #endif save(uint_64); // compiler error iif uint_64 is only a typedef for long long) so I think I want to be able to say #if BOOST_HAS_LONG_LONG save(long long); #endif #if BOOST_HAS_INT64 && BOOST_INSTRINSIC_INT64 save(uint_64); // OK #endif Robert Ramey John Maddock wrote:
Robert,
What is it that you actually want to know?
Normally folks will:
* Deal with short, int, long etc and then: * Deal with long long if BOOST_HAS_LONG_LONG is defined. * Or else deal with __int64 if BOOST_HAS_MS_INT64 is defined.
The alternative is to:
Deal with each int16_t, int32_t etc and then Deal with int64_t if BOOST_NO_INT64_T is not defined.
Mixing the two approaches is what causes the problems :-)
So... do you serialize by type or by width?
HTH, John.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost