]> 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>
Tue, 10 Dec 2024 18:07:03 +0000 (18:07 +0000)
commitb26d92f4f71594206385d6f645ff626c0bf9b59c
treefd1fef3bea5be2c80a72da134e6ea2a464e811c9
parent6fc3da8fa2af1d4ee154ea803636eabde358b553
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.
libstdc++-v3/include/bits/memory_resource.h