Boost logo

Boost :

Subject: Re: [boost] BOOST_NO_INTRINSIC_INT64_T
From: John Maddock (john_at_[hidden])
Date: 2009-03-26 14:48:52


> 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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk