9 Sep 05:37
Re: mpl::transform<...> --- compile error: is not derived from type
e r <erwann.rogard <at> gmail.com>
2008-09-09 03:37:17 GMT
2008-09-09 03:37:17 GMT
Steven Watanabe wrote: > 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 Got it, thanks. And also, I should add that range_c<int,1,3> represent [1,3) ,not [1,3].
RSS Feed