Boost logo

Boost Users :

Subject: [Boost-users] [boost::any] struct tm with boost::any
From: Pascal Kesseli (pascal_kesseli_at_[hidden])
Date: 2009-12-04 15:30:54

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


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at