|
Boost : |
Subject: Re: [boost] enable_shared_from_this2
From: Peter Dimov (pdimov_at_[hidden])
Date: 2009-10-27 18:12:35
Peter Dimov wrote:
> Before fixing it, can you please show me a test case that fails?
I get it. I haven't read Berserker's tests carefully (sorry), and our tests
do indeed not cover this case. Either ~enable_shared_from_this2 should be
made virtual and (T*)0 be made a dynamic_cast<T*>(this) as in the original,
or shared_from_this should be a free function, as you suggest. (How about
'shared_from_raw' as a name for the free function?)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk