Boost logo

Boost :

From: Stefan Slapeta (stefan_nospam__at_[hidden])
Date: 2004-06-26 02:36:10


Daniel Wallin wrote:

> I don't necessarily think this is a good idea,

Anyway, it's an idea :) It's just that it maybe could simplify 99% of
the intrusive_ptr applications.

I also played around with making the concept extendable (optionally
forwarding the call again to 'external' intrusive_ptr_add_ref etc. after
handling the reference count) but I couldn't imagine any situation where
this would be useful.

> You can use CRTP here instead, to avoid the virtual
> destructor.

Thanks!

Stefan


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