
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.hp... TIA. -regards, Larry

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@suddenlink.net> wrote in message news:h95s8r$1i1$1@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.hp...
TIA.
-regards, Larry
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

ok -- http://www.research.att.com/~bs/C++0xFAQ.html#variadic-templates which compiler supports this already? Peter "Peter Foelsche" <peter_foelsche@agilent.com> wrote in message news:h994k1$444$1@ger.gmane.org...
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@suddenlink.net> wrote in message news:h95s8r$1i1$1@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.hp...
TIA.
-regards, Larry
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

I guess my implementation (using boost::mpl::set) could be easily adapted to this new compiler feature as soon as it is available. Peter "Peter Foelsche" <peter_foelsche@agilent.com> wrote in message news:h995gr$644$1@ger.gmane.org...
ok --
http://www.research.att.com/~bs/C++0xFAQ.html#variadic-templates
which compiler supports this already?
Peter
"Peter Foelsche" <peter_foelsche@agilent.com> wrote in message news:h994k1$444$1@ger.gmane.org...
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@suddenlink.net> wrote in message news:h95s8r$1i1$1@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.hp...
TIA.
-regards, Larry
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

On 09/21/09 19:32, Peter Foelsche wrote:
I guess my implementation (using boost::mpl::set) could be easily adapted to this new compiler feature as soon as it is available.
Peter
I didn't think mpl:;set had any values, it has only types. I thought adding values was one of the central ideas behind fusion.

On 09/21/09 19:24, Peter Foelsche wrote:
ok --
http://www.research.att.com/~bs/C++0xFAQ.html#variadic-templates
which compiler supports this already?
The current g++ compiler if you pass the -std=c++0x flag, as explained here: http://gcc.gnu.org/projects/cxx0x.html The reason I'm interested is that it would eliminate the need for make_variant_over in the recur_variant.cpp attachment to: http://sourceforge.net/mailarchive/message.php?msg_name=h934ke%24j1u%241%40g... Variadic mpl is already in the boost sandbox, as mentioned elsewhere in that post. -Larry
participants (3)
-
Larry Evans
-
Peter Foelsche
-
troy d. straszheim