|
Boost : |
From: Brock Peabody (brock.peabody_at_[hidden])
Date: 2004-02-05 14:20:20
> -----Original Message-----
> From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]]
> On Behalf Of Brock Peabody
Never mind, I found it.
> Is there a way to get back a variant's type list?
>
> void f() {
>
> typedef mpl::vector<int,double> type_list;
> typedef make_variant_over<type_list>::type variant_type;
>
> BOOST_STATIC_ASSERT(is_same<type_list, variant_type::???>::value);
^^^
types
(Except that this is actually false because types == vector2<int,double>).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk