Re: [Boost-users] [variant, mpl] passing variable list of types

This is what I use for the same thing typedef typename boost::make_variant_over< Types >::type variant_t; Where Types is a mpl::vector<> of the types I want to put in the vector. -Neal Date: Wed, 30 Apr 2008 17:28:30 +0300 From: Igor R. <igor_rubinov@hotmail.com> Subject: [Boost-users] [variant, mpl] passing variable list of types as a template parameter To: <boost-users@lists.boost.org> Message-ID: <BAY109-W253127985653CE5AF34F9AF8D80@phx.gbl> Content-Type: text/plain; charset="windows-1255" Hello, I've got a class template that one of its members is boost::variant: template<?> class MyClass { boost::variant</*bounded types*/> var_; }; At the stage of MyClass instantiation, I'd like to specify variant' bounded types list - which is variable. What's the most simple way to do this? Can I use mpl::list somehow - both as MyClass template parameter and in the variant specialization? Thank you.

Great, thank you!> > This is what I use for the same thing> > typedef typename boost::make_variant_over< Types >::type variant_t;> > Where Types is a mpl::vector<> of the types I want to put in the vector.> > -Neal _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
participants (2)
-
Igor R.
-
Neal Meyer