[v3] Adjust shared_ptr signatures vs the allocator parameter

Paolo Carlini paolo.carlini@oracle.com
Mon Dec 6 17:04:00 GMT 2010


Hi,

the below tries to adjust the signatures wrt the by value vs by const
lvalue ref allocator parameter mess. I tried to keep it minimal, thus
only making sure that: 1- All the std::shared_ptr signatures are per
N3225; 2- Consistently the same is true for __shared_ptr; 3- Minimally
optimize the former constructors to use std::move in the initializers
involving the latter. Jon, does the patch look sane to you?

Tested x86_64-linux.

Paolo.

/////////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_shared_ptr_alloc
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20101206/b2796ad7/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_shared_ptr_alloc
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20101206/b2796ad7/attachment-0001.ksh>


More information about the Libstdc++ mailing list