Boost.Variant : C4800 on MSVS2012.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Boost.Variant : C4800 on MSVS2012.

syvyi
This post has NOT been accepted by the mailing list yet.
Hello,

there is type defined as boost::variant<std::string,int,double,bool,std::pair<std::string,struct N>.
When constructing a std::vector of above defined type as following
auto values = (boost::assign::list_of<value_t>("Motor",5,1,2.0,"Russian chassis")).values_container();
there's the warning issued by the compiler coersing char* into bool.

Why is it so?