Boost logo

Boost :

From: Ryan (ryan.gallagher_at_[hidden])
Date: 2005-06-17 23:23:56


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;

HTH

-Ryan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk