|
Boost : |
From: Brock Peabody (brock.peabody_at_[hidden])
Date: 2004-02-05 23:01:49
> -----Original Message-----
> From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]]
> On Behalf Of Eric Friedman
> template <typename T> struct is_variant
> : mpl::false_ {};
>
> template <BOOST_VARIANT_ENUM_PARAMS(typename T)>
> struct is_variant< variant<BOOST_VARIANT_ENUM_PARAMS(T)> >
> : mpl::true_ {};
>
> should do the trick. If this is deemed useful, I can include it in the
> next release. For now, BOOST_VARIANT_ENUM_PARAMS should cover you.
Yes that's much better. I don't know why I was making it so difficult.
Thanks!
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk