public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] libstdc++: Remove deprecated comparison operators for RB trees
@ 2020-08-19 16:32 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2020-08-19 16:32 UTC (permalink / raw)
  To: libstdc++, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 306 bytes --]

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.

Tested powerpc64le-linux. Committed to trunk.


[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1422 bytes --]

commit 5abc821556e141c9b7003877d09d9dd9e9f98ae7
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Aug 19 17:04:49 2020

    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 --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
     };
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-19 16:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-19 16:32 [committed] libstdc++: Remove deprecated comparison operators for RB trees Jonathan Wakely

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).