Boost logo

Boost Users :

Subject: Re: [Boost-users] info on size for boody::variant
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-10-23 16:03:41


AMDG

Emanuele Rocci wrote:
>
> If I have boost::variant< std::string, double, int > aVariable for
> example,
> do you know a way to test
> -what types are supported i.e. some test telling me that aVariable
> handles string, double and int
> -how many types are supported i.e. 3 in this example
>
"The bounded types of the variant are exposed via the nested
typedef types, which is an MPL-compatible Sequence containing
the set of types that must be handled by any visitor to the variant."

In Christ,
Steven Watanabe


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