Aleksey Gurtovoy <[EMAIL PROTECTED]> 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
> 'false'.

My vague memory is that it works as long as the member is not a
reference type... or something.

-- 
                       David Abrahams
   [EMAIL PROTECTED] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to