Boost logo

Boost :

From: Puverle, Tomas (IT) (Tomas.Puverle_at_[hidden])
Date: 2004-10-01 09:04:49


Please find attached a small program and a the resulting compilation
errors on SunCC.
This occurs in iterator_facade.hpp, operator != (), calling to
interator_core_access::equal. I have tracked this down to the following
problem:

f(mpl::true_);
f(mpl::false_);

f(is_convertible<>()); //will not work

is_convertible<> derives from mpl::bool<>, however it seems that a bug
in the compiler prevents it from converting to mpl::true_/mpl::false_ in
the above scenario (and in the program attached)

A workaround for this is to change it to the following:

f(mpl::true_);
f(mpl::false_);

f(mpl::bool_<is_convertible<>::value>());

Presumably this will be present in other places but this is the only one
our developers have hit so far.

Thanks,

Tom
--------------------------------------------------------
 
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
 





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