
26 Mar
2008
26 Mar
'08
12:44 a.m.
On Tue, Mar 25, 2008 at 9:06 PM, Frank Mori Hess <fmhess@speakeasy.net> 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