Boost logo

Boost :

Subject: Re: [boost] [variant]anyone working on variadic template version?
From: Peter Foelsche (peter_foelsche_at_[hidden])
Date: 2009-09-21 20:09:36


do you mean an implementation which is supposed to be used like this:

typedef variant<boost::mpl::set<int, char, long, double, const char *> >
CVariant;

"Larry Evans" <cppljevans_at_[hidden]> wrote in message
news:h95s8r$1i1$1_at_ger.gmane.org...
> 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
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


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