You can apply the visitor to the variant and receive the instance of the stored type.


With Kind Regards,
Ovanes


On Tue, May 6, 2008 at 3:05 PM, Igor R. <igor_rubinov@hotmail.com> wrote:
Hi all,
 
How can I get the first "bounded type" of a variant? I see there's a public typedef there:
 
    typedef typename mpl::transform<
          recursive_enabled_types
        , unwrap_recursive<mpl::_1>
        >::type types;

but I don't realize how I can "extract" the type from here.
I need something like this:
 
MyVariantType v;
MyVariantType::FirstBoundedType *value = get<MyVariantType::FirstBoundedType>(&v);
 
 
Thank you!


Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it!

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users