Boost logo

Boost :

From: Greg Dehaas (GregDehaas_at_[hidden])
Date: 2003-01-31 03:12:42

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;
                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

Boost list run by bdawes at, gregod at, cpdaniel at, john at