|
Boost Users : |
From: Beman Dawes (bdawes_at_[hidden])
Date: 2002-01-07 21:02:53
At 06:54 PM 1/5/2002, wayneconrad wrote:
>Is there any interest in a weak pointer that plays well with shared_ptr
and
>its friends?
Both Greg Colvin and Peter Dimov (and others?) have worked on the idea off
and on.
I think they are "on" at the moment.
On the main Boost list we are also looking hard at the Loki::SmartPtr.
It would be interesting to try to implement cyclic_ptr, weak_ptr, and the
like as a SmartPtr OwnershipPolicy.
The thinking is that the future of smart pointers isn't to keep adding
completely separate classes. But rather to add more instances of policy
classes to a Loki::SmartPtr style framework.
(For more information, see Modern C++ Design by Andrei Alexandrescu. Highly
recommended!)
--Beman
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net