|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2003-08-12 08:52:23
David Abrahams <dave_at_[hidden]> writes:
> "John Maddock" <jm_at_[hidden]> writes:
>
>> I'm trying to remember, did someone around here come up with some code that
>> can tell at compiler time whether an object has a specific member or not, I
>> can do it for operators, but not a member typedef (which is what I want)...
>
> See boost/mpl/aux_/has_xxx.hpp. Example usage in boost/detail/iterator.hpp.
To my knowledge, these are the platforms it fails on:
#if BOOST_WORKAROUND(__GNUC__, == 2 && __GNUC_MINOR__ == 95) \
|| BOOST_WORKAROUND(__MWERKS__, <= 0x2407) \
|| BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551))
no has_xxx support
#endif
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk