
----- Original Message -----
From: Mathias Gaunard <mathias.gaunard@ens-lyon.org> To: boost@lists.boost.org Cc: Sent: Sunday, April 15, 2012 8:07 AM Subject: Re: [boost] [Variant] C++11 variadic template implementation
On 15/04/12 11:57, Florian Goujeon wrote:
Hi Boosters,
I'd like to know if anybody were working on a C++11 version (using variadic
templates) of Boost.Variant.
Variadic templates would not help at all with Boost.Variant.
I've written an implementation. Do you have the code posted online somewhere?
Did you find a magic way to make a switch statement from a template parameter pack?
Well you can expand the parameter pack to create a static array of function pointers. This is how it is done in this implementation: http://thenewcpp.wordpress.com/2012/02/15/variadic-templates-part-3-or-how-i... Thanks, Paul Fultz II