From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 89E1E38708DF; Fri, 21 Aug 2020 04:23:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 89E1E38708DF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597983823; bh=Rfkhgv1/CiwGWQ9eDqPGu5ZlOCJnBgH+Qvv8LUdiN+k=; h=From:To:Subject:Date:From; b=AOV0G81JIyv0/KJpBy/pPtVmDdMqUjnECUd5kXcZWLcANazM/JvRNzIalf4LutWnw d7HNnhFUHB59bHzdB8bbS0yGE6kdRE8fL9SMTgoArof2NNxGjWhtUqfys7x0xCox4a lDK3xMSQ1c4hBbwmuJgm5WlG+FHsjIDSSiv3j+3w= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alexandre Oliva To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc(refs/users/aoliva/heads/testme)] libstdc++: Remove deprecated comparison operators for RB trees X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/users/aoliva/heads/testme X-Git-Oldrev: 386fd16c551188e20d5b1684b7139e4269f9a739 X-Git-Newrev: 5abc821556e141c9b7003877d09d9dd9e9f98ae7 Message-Id: <20200821042343.89E1E38708DF@sourceware.org> Date: Fri, 21 Aug 2020 04:23:43 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Aug 2020 04:23:43 -0000 https://gcc.gnu.org/g:5abc821556e141c9b7003877d09d9dd9e9f98ae7 commit 5abc821556e141c9b7003877d09d9dd9e9f98ae7 Author: Jonathan Wakely 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 };