
18 Jun
2005
18 Jun
'05
10:23 a.m.
Ryan <ryan.gallagher@gmail.com> writes:
Brian Braatz <brianb <at> rmtg.com> writes:
[snip] // copy it to a vector typedef mpl::copy < myset::type , back_inserter< vec >
>::type result_vec;
mpl::for_each<result_vec>( print_type()); } ...
Try:
typedef mpl::copy < mpl::begin<myset> , mpl::back_inserter<vec>
::type result_vec;
Err, no. The manual says: template< typename Sequence , typename In = unspecified > struct copy { typedef unspecified type; }; There was nothing wrong with what Brian wrote, although he could have dropped ::type from myset::type. I'm looking into the causes of his trouble right now. -- Dave Abrahams Boost Consulting www.boost-consulting.com