$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Nindi (Nindi73_at_[hidden])
Date: 2006-07-01 05:09:07
When I have a Boost.Variant templated on a bool and a std::string, I get
the following behaviour ..
#include<string>
#include<boost/variant.hpp>
typedef boost::variant< bool,std::string> BoostVariant;
int main () {
BoostVariant v("A String");
bool &Bref(boost::get<bool&>(v)); // this is ok
std::string &Sref(boost::get<std::string&>(v)); // But this throws
return 0;
}