Boost logo

Boost Users :

From: Daniel Oberhoff (daniel_at_[hidden])
Date: 2008-03-17 16:05:58


Hi,

I am playing with boost::variant to introduce a more elegant property
system into my current project. I was wondering why there are no cast
operatorst defined for the variant types, to avoid having to type get<>:

boost::variant<double,int,string> v;
string s = v;

is there a basic reason why this is not possible?

Best

Daniel


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net