libstdc++: Implement LWG 3683 for pmr::polymorphic_allocator
authorJonathan Wakely <jwakely@redhat.com>
Thu, 19 May 2022 12:26:49 +0000 (13:26 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 27 May 2022 17:32:52 +0000 (18:32 +0100)
commit5647e401bb8656d1d9897c7a536bf00ff50fd20b
treed31ce75bc8882f6110c27013d5bb84748763f724
parent871aa113666dc787bcc70c94b183e3e420c09e6d
libstdc++: Implement LWG 3683 for pmr::polymorphic_allocator

This issue has recently been moved to Tentatively Ready, and seems
uncontroversial. This allows equality comparison with types that are
convertible to pmr::polymorphic_allocator, which fail deduction for the
existing equality operator.

libstdc++-v3/ChangeLog:

* include/std/memory_resource (polymorphic_allocator): Add
non-template equality operator, as proposed for LWG 3683.
* testsuite/20_util/polymorphic_allocator/lwg3683.cc: New test.

(cherry picked from commit f13f9c99dbee9c495955a430dd10bdb24a16f24a)
libstdc++-v3/include/std/memory_resource
libstdc++-v3/testsuite/20_util/polymorphic_allocator/lwg3683.cc [new file with mode: 0644]