]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Check feature test macros in unordered containers
authorJonathan Wakely <jwakely@redhat.com>
Fri, 1 Nov 2024 10:50:02 +0000 (10:50 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 1 Nov 2024 20:36:53 +0000 (20:36 +0000)
commit1a5bdeb1128ecfa4ce233218d02ccbb88ce0d8a8
tree7cadc0bc81967cd76850647c9eef9ce75a96704e
parentdb798ee38a3f81eff207e889c36c727bb370112c
libstdc++: Check feature test macros in unordered containers

Replace some `__cplusplus > 201402L` preprocessor checks with more
expressive checks for the appropriate feature test macros.

libstdc++-v3/ChangeLog:

* include/bits/unordered_map.h: Check __glibcxx_node_extract and
__glibcxx_unordered_map_try_emplace instead of __cplusplus.
* include/bits/unordered_set.h: Check __glibcxx_node_extract
instead of __cplusplus.
libstdc++-v3/include/bits/unordered_map.h
libstdc++-v3/include/bits/unordered_set.h