
26 Mar
2009
26 Mar
'09
6:48 p.m.
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
What's wrong with: save(int); save(long); #ifdef BOOST_HAS_LONG_LONG save(long long); #elif defined(BOOST_HAS_MS_INT64) save(__int64); #endif ?? I don't think there are any types used for int64_t other than long/long long/__int64? HTH, John.