[MPL] insert_range bug with empty sequences

I have found that applying insert_range to append elements to an empty sequence has no effect. E.g., the following compiles without error on every compiler I have tried (VC7.1, GCC 3.2, Intel 7.1 and CW8.0). typedef mpl::insert_range< mpl::list0<>, mpl::end< mpl::list0<> >::type, mpl::list<int> >::type result; BOOST_STATIC_ASSERT((size<result>::type::value == 0)); I get the same result if I use vectors instead of lists. This looks like a bug to me. Jonathan

Jonathan Turkanis wrote:
I have found that applying insert_range to append elements to an empty sequence has no effect. E.g., the following compiles without error on every compiler I have tried (VC7.1, GCC 3.2, Intel 7.1 and CW8.0).
typedef mpl::insert_range< mpl::list0<>, mpl::end< mpl::list0<> >::type, mpl::list<int> >::type result; BOOST_STATIC_ASSERT((size<result>::type::value == 0));
I get the same result if I use vectors instead of lists.
This looks like a bug to me.
It was! Fixed in the main trunk. Thanks for the report, -- Aleksey Gurtovoy MetaCommunications Engineering
participants (2)
-
Aleksey Gurtovoy
-
Jonathan Turkanis