any_cast<double>(any_assigned_with_int) fails. workaround?
23 May
2003
23 May
'03
3:23 p.m.
Hi! At present I learn what it means not to have strong typing: I play around with boost::any. A new and healing experience. Thank You, Bjarne, for insisting on strong typing for C++ ;-) Never made so much use of the debugger ... So now I found out that any_cast does not promote types that may be promoted like for int->double conversions. Any workaround in the lib I overlooked or is this the time for my_any_cast<T>(boost::any const &)? Markus -- Compile time analytic differentiation? Yes, at http://daixtrose.sourceforge.net/
7845
Age (days ago)
7845
Last active (days ago)
0 comments
1 participants
participants (1)
-
Markus Werle