Hi All, I'm probably being stoopid, but if someone could point me in the right direction, thanks :)
I've got this: boost::any test = "Test Me"; int nTest=0; try { nTest = boost::any_cast<int>(test); } catch(const boost::bad_any_cast &) { MessageBox(NULL,"Bad Cast","Bad Cast",0); } And the error message is: c:\dev\boost\boost\any.hpp(105) : error C2536: 'boost::any::holder<char [8]>::held' : cannot specify explicit initializer for arrays c:\dev\boost\boost\any.hpp(122) : see declaration of 'held' c:\dev\boost\boost\any.hpp(103) : while compiling class-template member function '__thiscall boost::any::holder<char [8]>::boost::any::holder<char [8]>(const char (&)[8])' Thanks for the help _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost