Boost logo

Boost :

Subject: Re: [boost] Detection of 64bit using macro
From: Kim Kuen Tang (kuentang_at_[hidden])
Date: 2010-08-13 16:23:22


Hi Jeff,

Jeffrey Lee Hellrung, Jr. schrieb:
>
> Perhaps you should just specialize on std::size_t conditional on it
> being different from an unsigned int, rather than on 64bit-ness:
>
nice solution to my problem. Thx. But i am still interested in the
answer to my question.

-Kim
> template< class T, bool = boost::is_same< T, unsigned int >::value >
> struct Null2;
>
> template<>
> struct Null2< unsigned int, true > { ... };
> template<>
> struct Null2< std::size_t, false > { ... };
>
> template< class T >
> struct Null : Null2<T> { };
>
> There might be a "cleaner" way to achieve the same effect, but does
> that help?
>
> - Jeff
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


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