
25 Aug
2009
25 Aug
'09
11:47 p.m.
I have a sequence of types defined with the Loki library. I believe the
equivalent would be boost::mpl::vector. The sequence is used to cause
compile time asserts for unsupported types being passed to template
functions. Boost variant can be created with a given list of types.
typedef boost::variant< int, std::string, short, long > type_list;
|