[patch] Improving shared_ptr for C++0x

Jonathan Wakely jwakely.gcc@gmail.com
Wed Dec 12 18:34:00 GMT 2007


In another thread Paolo pointed out DR402, which I hadn't thought of
when implementing _Sp_counted_ptr_inplace.  The two uses of placement
new with the embedded type should be qualified in case the type
defines its own operator new.  The attached testcase verifies this and
I'll add it with the other parts.

Tested again on x86_64/linux - new testcase fails without the
qualifications and passes with.

Jon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dr402.cc
Type: text/x-c++src
Size: 1346 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20071212/6eed4b5f/attachment.bin>


More information about the Libstdc++ mailing list