Boost logo

Boost Users :

From: Nindi Singh (nindi73_at_[hidden])
Date: 2006-07-01 11:42:35


... .. but this works fine ..

#include<string>
#include<boost/variant.hpp>

typedef boost::variant<std::string> BoostVariant;
int main () {
             BoostVariant v("A String");
             std::string &Sref(boost::get<std::string&>(v)); // NOW this does NOT throw
             return 0;
}


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