Dear all,
I get a compilation error with Boost.Variant (which compiles fine on
previous releases) with vstudio 2010 when a function returns a const
Boost.Variant, e.g.:
typedef boost::variant<int, double> Variant;
const Variant GetVar()
{
return Variant();
}
void TestVariantDnc()
{
const Variant var = GetVar();
}
This gives error C2666 ('boost::variant<T0_,T1>::convert_construct' : 3
overloads have similar conversions').