From dcd1fc4900fd101f8fa22883b6ac31e6f7601373 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 21 Apr 2022 14:12:25 +0100 Subject: [PATCH] libstdc++: Deprecate __gnu_cxx::rope::erase(size_type) [PR102048] This function is broken, and has been removed for GCC 11 and 12. Deprecate it for GCC 10. libstdc++-v3/ChangeLog: PR libstdc++/102048 * include/ext/rope (rope::erase(size_type)): Deprecate broken function. --- libstdc++-v3/include/ext/rope | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/include/ext/rope b/libstdc++-v3/include/ext/rope index fb7bdb0d6f49..5597ecb85629 100644 --- a/libstdc++-v3/include/ext/rope +++ b/libstdc++-v3/include/ext/rope @@ -2388,7 +2388,7 @@ protected: } // Erase, single character - void + _GLIBCXX_DEPRECATED void erase(size_type __p) { erase(__p, __p + 1); } -- 2.47.2