Boost logo

Boost :

Subject: Re: [boost] convert boost::mpl::vector_c<int> into const int[]
From: John Bytheway (jbytheway+boost_at_[hidden])
Date: 2009-06-20 05:49:53

David Abrahams wrote:
> on Mon Jun 15 2009, "Peter Foelsche" <> wrote:
>> Is there any way to convert a boost::mpl::vector_c<int> into a const int[] without
>> using boost::mpl::for_each?
> You could use a whole bunch of specializations, one for each length of
> vector.

I did this once with preprocessor metaprogramming. It works, but be
careful; depending on implementation it can be very slow (at
preprocessor time). If it would help, I can probably dig out my

John Bytheway

Boost list run by bdawes at, gregod at, cpdaniel at, john at