Hi everyone

 

These two lines of code:

 

    any a = tm();

    tm t = any_cast<tm>(a);

 

result in a bad_any_cast exception:

 

boost::bad_any_cast: failed conversion using boost::any_cast

 

Is that a bug or what am I missing here? I am using MinGW version 4.4.0 and boost 1.40.0.

 

Thanks for a quick reply and best regards Pascal