From: David Abrahams (dave_at_[hidden])
Date: 2002-12-07 08:36:09
Aleksey Gurtovoy <agurtovoy_at_[hidden]> writes:
> David Abrahams wrote:
>> > MPL's implementation ("boost/mpl/aux_/has_xxx.hpp") is
>> > known to work on Comeau, Intel (all versions), MSVC (all versions),
>> > Metroweks 8.3/8.2 and GCC 3.2. There is no known way to make it
>> > work on Borland. You can test it against any other compiler by
>> > trying out "boost/libs/mpl/test/aux_/has_xxx.cpp" test case.
>> It also works with GCC 2.95.2 with some restrictions. I don't remember
>> what they are offhand. Something like that the type must be a class?
>> ... that doesn't sound quite right because we could work around it
>> with an is_class pre-test.
> I wouldn't call it "works": it returns 'true' if the member exists,
> otherwise it fails with a compilation error (whether the tested type is a
> class or not). Or it would fail if we didn't #ifdef'ed it to always return
My vague memory is that it works as long as the member is not a
reference type... or something.
-- David Abrahams dave_at_[hidden] * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk