Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-11-16 07:13:22


From: "Jeff King" <peff-boost_at_[hidden]>
> I'm considering a new poly_ptr class for boost; the intent is to aid in
> the creation of heterogenous (polymorphic) containers.

[...]

> - does this duplicate functionality already in boost?
> - is there a better way to achieve the same ends?

Please take a look at

http://groups.yahoo.com/group/boost/files/impl_ptr/variant.hpp
http://groups.yahoo.com/group/boost/files/impl_ptr/variant_test.cpp

I think that it comes pretty close to what you were describing.

> - should this be part of boost?

I think so, in one form or another. Perhaps it's time for me to finally
polish variant.hpp and request that review.

--
Peter Dimov
Multi Media Ltd.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk