Boost.Variant, MSVS2012: C4800
От: Аноним  
Дата: 15.08.13 11:12
Оценка:
Hello,

there is type defined as
boost::variant<std::string,int,double,bool,std::pair&lt;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?
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.