
30 Sep
2009
30 Sep
'09
9:47 p.m.
also it would be nice if one could somehow deduce the integer value returned from which(): typedef boost::variant<std::string, int, double> CVariant; CVariant("test").which() == CVariant::ID<std::string>::value CVariant(1.0).which() == CVariant::ID<double>::value