]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Use feature test macro for pmr::polymorphic_allocator<>
authorJonathan Wakely <jwakely@redhat.com>
Tue, 10 Dec 2024 14:35:07 +0000 (14:35 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 9 Jan 2025 23:52:33 +0000 (23:52 +0000)
commita4c0f16f048b64c1ab3b2521e3a1595afc64462b
tree576d861f79eb0e616cea75e7f4120efaa936ed95
parente6d2bcf74235ec8760136b2d7364ec472954b65b
libstdc++: Use feature test macro for pmr::polymorphic_allocator<>

Check the __glibcxx_polymorphic_allocator macro instead of just checking
whether __cplusplus > 201703L.

libstdc++-v3/ChangeLog:

* include/bits/memory_resource.h (polymoprhic_allocator): Use
feature test macro for P0339R6 features.

(cherry picked from commit b26d92f4f71594206385d6f645ff626c0bf9b59c)
libstdc++-v3/include/bits/memory_resource.h