|
Boost : |
From: Remy Blank (remy.blank_REMOVE_THIS_at_[hidden])
Date: 2003-01-31 04:06:41
On Fri, 31 Jan 2003 10:12:42 +0200, Greg Dehaas <GregDehaas_at_[hidden]> 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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk