|
Boost Users : |
Subject: Re: [Boost-users] mpl and fusion containers: numbered vs variadic
From: Christopher Schmidt (christopher_at_[hidden])
Date: 2012-05-27 15:49:38
"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
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