|
Boost : |
From: Daniel Frey (d.frey_at_[hidden])
Date: 2008-04-17 03:11:35
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 ;)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk