]> git.ipfire.org Git - thirdparty/gcc.git/commit
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>
Thu, 19 May 2022 14:30:56 +0000 (15:30 +0100)
commitf13f9c99dbee9c495955a430dd10bdb24a16f24a
tree4dac810cf67f6bac7e59ce83be736453bb74e1d7
parent060173dd73fcaf0767215f9d989ad064e2d5fe2a
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.
libstdc++-v3/include/std/memory_resource
libstdc++-v3/testsuite/20_util/polymorphic_allocator/lwg3683.cc [new file with mode: 0644]