Boost logo

Boost :

Subject: Re: [boost] limit symbol names of fusion::vector
From: Joel de Guzman (joel_at_[hidden])
Date: 2008-11-15 06:09:55


Joel de Guzman wrote:
> Steven Watanabe wrote:
>> AMDG
>>
>> Joel de Guzman wrote:
>>> I can provide an easy solution for you:
>>>
>>> template <
>>> BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
>>> FUSION_MAX_VECTOR_SIZE, typename T, void_)
>>> >
>>> struct make_vector_n
>>> {
>>> typedef typename detail::vector_n_chooser<
>>> BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, T)>::type
>>> type;
>>> };
>>>
>>> If that works for you, would you provide simple docs for it I can
>>> add in the reference?
>>
>> Is there a particular reason why make_vector doesn't use this.
>
> Good point. I'll ponder on this and get back to you.

Ok, it's looking good. I updated make_vector to return the
numbered forms. All tests are passing.

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://spirit.sf.net

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