|
Boost : |
From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2005-02-25 17:18:46
Hi Frantz,
Why do you store heap-allocated pointers in any? Why not just store
objects? Like this:
boost::any b = B(); // not "new B" !
any then
A& base = extract<A&>(b); // not yet in boost
This feature has been implemented in dynamic_any but it's not yet
accepted.
For more information, refer to http://cpp-experiment.sf.net
-- Alexander Nasonov
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk