Boost logo

Boost :

Subject: [boost] [variant]anyone working on variadic template version?
From: Larry Evans (cppljevans_at_[hidden])
Date: 2009-09-20 14:50:02


Is anyone working on a variadic template version of variant, i.e.
one that defined as:

   template<typename... T>class variant;

instead of:

   template
   < typename T0 = detail::variant::void_
   , typename T1 = detail::variant::void_
   ...
   , typename T19 = detail::variant::void_
> class variant;

?

I'm thinking of attempting that, but I'd hate to waste
time if someone else has already done it or made some
progress on it. Although BoostCon09 did have a workshop
on CXX0x:

   http://www.boostcon.com/community/wiki/show/Start/HandsOnCXX0x/

the sandbox directory for that:

   https://svn.boost.org/svn/boost/sandbox/boost0x

didn't appear to use the variadic template feature in variant:

https://svn.boost.org/svn/boost/sandbox/boost0x/boost/variant/variant_fwd.hpp

TIA.

-regards,
Larry


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