[PATCH] PR libstdc++/90239 use uses_allocator_construction_args in <scoped_allocator>

Jonathan Wakely jwakely@redhat.com
Fri Apr 26 13:17:00 GMT 2019


On 25/04/19 23:43 +0100, Jonathan Wakely wrote:
>	PR libstdc++/90239
>	* doc/xml/manual/status_cxx2020.xml: Amend P0591R4 status.
>	* include/std/scoped_allocator [__cplusplus > 201703L]
>	(scoped_allocator_adaptor::construct): Define in terms of
>	uses_allocator_construction_args, as per P0591R4.
>	* testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc: New test.
>	* testsuite/util/testsuite_allocator.h: Remove name of unused
>	parameter.
>
>Tested powerpc64le-linux, committed to trunk.

Here's a follow-up which adds a similar test for polymorphic_allocator
(which was already using the new utilities so already had the correct
c++2a behaviour, but it was untested).

Tested powerpc64le-linux, using default flags, and also -std=gnu++2a
and also -std=gnu++2a/-fconcepts.

Committed to trunk.


>I'll backport this to gcc-9-branch after the 9.1.0 release.

Richi said the previous patch is OK to backport now, so I'll ask about
this one too (which also only touches C++2a code) after testing on the
branch.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 5017 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20190426/4dad9027/attachment.bin>


More information about the Libstdc++ mailing list