
17 Apr
2008
17 Apr
'08
7:11 a.m.
On Thu, 2008-04-17 at 07:44 +0200, I wrote:
That would only be possible if I drop shared_from_this(), which would break the interface for every use case. OTOH, if you consider a breaking change to the interface, it's easier for the user as he simply passes the this-pointer in all cases (except where he wants to pass a different pointer) and doesn't need to make a decision. The possibility of passing something else than "this"
...is no worse or dangerous than having the shared_ptr-ctor which takes a shared_ptr and a plain pointer AFAICT. (Yes, I should have finished this sentence before sending the first mail ;)