On Fri, 31 Jan 2003 10:12:42 +0200, Greg Dehaas <[EMAIL PROTECTED]> wrote:
> 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";    

       boost::any test = std::string("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])'

HTH,
--Remy


Remove anti-spam sequence in reply address for a timely response.




_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to