public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Nathan Sidwell <nathan@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc/devel/c++-modules] libstdc++: Remove deprecated comparison operators for RB trees Date: Fri, 28 Aug 2020 15:56:43 +0000 (GMT) [thread overview] Message-ID: <20200828155643.A84EB3947411@sourceware.org> (raw) https://gcc.gnu.org/g:5abc821556e141c9b7003877d09d9dd9e9f98ae7 commit 5abc821556e141c9b7003877d09d9dd9e9f98ae7 Author: Jonathan Wakely <jwakely@redhat.com> Date: Wed Aug 19 17:04:49 2020 +0100 libstdc++: Remove deprecated comparison operators for RB trees These functions were deprecated in GCC 9.1.0 because they are never used by the library. This patch removes them for GCC 11. libstdc++-v3/ChangeLog: * include/bits/stl_tree.h (operator!=, operator>, operator<=) (operator>=): Remove deprecated functions. Diff: --- libstdc++-v3/include/bits/stl_tree.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/libstdc++-v3/include/bits/stl_tree.h b/libstdc++-v3/include/bits/stl_tree.h index 21b72cebf2e..c50391d68c3 100644 --- a/libstdc++-v3/include/bits/stl_tree.h +++ b/libstdc++-v3/include/bits/stl_tree.h @@ -1632,22 +1632,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return std::lexicographical_compare(__x.begin(), __x.end(), __y.begin(), __y.end()); } - - friend bool _GLIBCXX_DEPRECATED - operator!=(const _Rb_tree& __x, const _Rb_tree& __y) - { return !(__x == __y); } - - friend bool _GLIBCXX_DEPRECATED - operator>(const _Rb_tree& __x, const _Rb_tree& __y) - { return __y < __x; } - - friend bool _GLIBCXX_DEPRECATED - operator<=(const _Rb_tree& __x, const _Rb_tree& __y) - { return !(__y < __x); } - - friend bool _GLIBCXX_DEPRECATED - operator>=(const _Rb_tree& __x, const _Rb_tree& __y) - { return !(__x < __y); } #endif };
reply other threads:[~2020-08-28 15:56 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200828155643.A84EB3947411@sourceware.org \ --to=nathan@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).