
22 Apr
2008
22 Apr
'08
7:06 p.m.
Daniel Frey:
On Tue, 2008-04-22 at 01:54 +0300, Peter Dimov wrote:
as for the rest, I'd really like to see the patch without #1 and #2.
Please see the attached patch. OK to commit?
The shared_count.hpp and shared_ptr.hpp changes are OK with me. I'll let Frank approve the esft part.
Note that with this patch, the alternative aliasing is already possible:
shared_ptr<X> x = ...; Y* y = ...;
shared_ptr<Y>( x.get_shared_count(), y ); // aliasing
Since the current aliasing ctor is not as explicit and it is not yet standardizes: What do you think about removing it?
I'm not interested in pursuing this for C++0x.