I would like to use a boost.variant<T0,T1,T2> as a parameter to a template \'Visitor\' class which would provide visitor operators as required by the boost.variant visitor mechanism, in this cas
How would you check for the object type when looping std::list? class A { int x; int y; public: A() {x = 1; y = 2;}
struct A { std::string get_string(); }; struct B { int value; }; typedef boost::variant<A,B> var_types;
Hy there, I\'m trying to adapt an existing code to boost::va开发者_运维百科riant. The idea is to use boost::variant for a heterogeneous vector. The problem is that the rest of the code use iterators
I\'m using a boost variant to hold some generated types, right now my开发者_Python百科 code generator creates a header with the types and a variant capable of holding them.At initialization time, I\'d