[patch] Simplify allocator use
Jonathan Wakely
jwakely@redhat.com
Thu Jun 26 12:44:00 GMT 2014
On 26/06/14 00:06 +0100, Jonathan Wakely wrote:
>This simplifies some of the test changes in my last patch, I was
>misusing the CustomPointerAlloc due to confusion with some uncommitted
>changes.
And this fixes the -fno-rtti version of make_shared, I shouldn't have
changed the deleter's parameter to the allocator's pointer. That
worked with the current test, but only because our CustomPointerAlloc
uses a custom pointer that is implicitly-convertible from value_type*.
I have a completely rewritten custom pointer for the testsuite which
doesn't support implicit conversions (only the minimum requirements)
and that caught this bug. The new custom pointer type is proving very
useful while I'm making some std::list changes but isn't ready for
prime-time yet.
Tested x86_64-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 815 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20140626/43990bc7/attachment.bin>
More information about the Libstdc++
mailing list