Boost logo

Boost Users :

Subject: Re: [Boost-users] mpl and fusion containers: numbered vs variadic
From: Larry Evans (cppljevans_at_[hidden])
Date: 2012-05-27 16:40:34


On 05/27/12 14:49, Christopher Schmidt wrote:
> "MM"<finjulhich_at_[hidden]> writes:
>
>> Is it true that as a general rule, using the numbered version instead
>> of the variadic version yields faster compile times? Or is it just
>> about compilers supporting variadic templates?
>
> IIRC Fusion currently implements the variadic vector in terms of the
> fixed numeric ones. (And all other container on top of the vector.)
> This is, the use of a numeric vector should be slightly faster than the
> use of the variadic one.
>
> If C++11's variadic templates are used, it will be easiest to implement
> the numbered ones using an unnumbered, variadic implementation in
> combination with template aliases, though.
>
> Christopher
Hi Christopher,

Could you please provide an example implementation of this C++11
implementation? I've no idea how template aliases could be used :(

TIA.

-regards,
Larry


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net