I'm not sure what the purpose of B is? It seems to be a useless wrapper at this point. Why not just a typedef boost::variant<int, float, double, string> var_t?
This is a simplified structure of a bigger program, I need to create a vector of template objects and not a vector with normal types.
For that reason I have created B.
So Bazzy, can you give me an example on how obtain my object as a reference?