Wt::WAbstractItemModel::data provides a data type of boost::any. I tried:

str::tmpstr=boost::any_cast<string>(qModel->data(qModel->index(y,x)).any_cast);

to convert it to std::string but this line gives an error:
"Wt: error during event handling: boost::bad_any_cast: failed conversion using 
boost::any_cast"

so, is there a way to cast boost::any to string or WString?


Oto
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to