Boost logo

Boost Users :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2004-10-04 11:06:37


Puverle, Tomas writes:
> 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<>,

Actually, on SunCC, it doesn't -- see lines 19-24 in
"boost/type_trais/detail/bool_trait_def.hpp":

#if defined(__SUNPRO_CC)
# define BOOST_TT_AUX_BOOL_TRAIT_VALUE_DECL(C) \
    typedef BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE::bool_< C > type; \
    enum { value = type::value }; \
    /**/
# define BOOST_TT_AUX_BOOL_C_BASE(C)

I'd say it's a bug. Would you mind applying the attached patch to
the aformentioned header and reporting back whether it fixes the
problem or not?

--
Aleksey Gurtovoy
MetaCommunications Engineering



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net