Boost logo

Boost :

From: Andrei Alexandrescu (andrewalex_at_[hidden])
Date: 2002-05-01 10:46:21


"Peter Dimov" <pdimov_at_[hidden]> wrote in message
news:00f501c1f0fa$91e6d940$1d00a8c0_at_pdimov2...
> shared_ptr uses "runtime policies." In
>
> shared_ptr<T> pt(new U);
>
> it is the type of U that determines its behavior, not T. (Latest CVS
> semantics.)

That is straight polymorphism. Basically shared_ptr implements
polymorphic smart pointers. I believe that's not a good idea for smart
pointers.

Andrei


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