
13 Aug
2010
13 Aug
'10
8:23 p.m.
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