Boost logo

Boost Users :

From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2008-05-06 11:25:08


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_at_[hidden]> 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!<http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net