]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Deprecate std::rel_ops namespace for C++20
authorJonathan Wakely <jwakely@redhat.com>
Wed, 27 Nov 2024 23:36:03 +0000 (23:36 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 28 Nov 2024 15:27:28 +0000 (15:27 +0000)
commitbb551f497e72b2c86733144568002ef8a7317ca3
tree0a7afec2d23e5b53d996d90df5a6b0c6812a9687
parent3f3966b5a3103ab198257b62bd7563996f2f6f65
libstdc++: Deprecate std::rel_ops namespace for C++20

This is deprecated in the C++20 standard and will be removed at some
point.

libstdc++-v3/ChangeLog:

* include/bits/stl_relops.h (rel_ops): Add deprecated attribute.
* testsuite/20_util/headers/utility/using_namespace_std_rel_ops.cc:
Add dg-warning for -Wdeprecated warnings.
* testsuite/20_util/rel_ops.cc: Likewise.
* testsuite/util/testsuite_containers.h: Disable -Wdeprecated
warnings when using rel_ops.
libstdc++-v3/include/bits/stl_relops.h
libstdc++-v3/testsuite/20_util/headers/utility/using_namespace_std_rel_ops.cc
libstdc++-v3/testsuite/20_util/rel_ops.cc
libstdc++-v3/testsuite/util/testsuite_containers.h