Boost logo

Boost :

From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2008-03-25 20:44:12


On Tue, Mar 25, 2008 at 9:06 PM, Frank Mori Hess <fmhess_at_[hidden]> wrote:
> On Tuesday 25 March 2008 19:58, Felipe Magno de Almeida wrote:
> > What happens if two different deleters are used to create different
> > shared_ptrs (on the same object) ?
>
> The situation I'm talking about only applies to exactly the case you
> describe.
>
>
> > Does this happens with only shared_from_this inherited classes or for
> > all types?
>
> Only to classes that inherit from enable_shared_from_this.

That seems safe. Thanks for the enable_shared_from this. I'll have to revisit
some of my GUI library for workarounds for shared_from_this in constructors.
That should probably remove a lot of boilerpart and unreadable code.

> --
> Frank

Thanks,

-- 
Felipe Magno de Almeida

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