Boost logo

Boost Users :

Subject: Re: [Boost-users] mpl::transform<...> --- compile error: is not derived from type
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-09-08 10:09:10


AMDG

e r wrote:
>> and also, although the second version compiles, i have
>>
>> BOOST_MPL_ASSERT( (
>> is_same<
>> id_range::type,
>> mpl::vector< mpl::int_<1>, mpl::int_<2>, mpl::int_<3> >
>> >
>> ) );
>>
>> causes,
>>
>> <snip>
>>

Two boost::mpl::vectors that contain the same elements are not guaranteed to
be the same type. If you boost::mpl::equal, it ought to work.

    BOOST_MPL_ASSERT( (
            boost::mpl::equal<
                id_range::type,
                mpl::vector< mpl::int_<1>, mpl::int_<2>, mpl::int_<3> >
>
    ) );

In Christ,
Steven Watanabe


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