]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Deprecate __gnu_cxx::rope::erase(size_type) [PR102048]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 21 Apr 2022 13:12:25 +0000 (14:12 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 26 Apr 2022 13:10:47 +0000 (14:10 +0100)
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

index fb7bdb0d6f490256e0a4da96380e5f4c5841dfb3..5597ecb8562953c18011202d0be185bc3ec3ea0e 100644 (file)
@@ -2388,7 +2388,7 @@ protected:
       }
 
       // Erase, single character
-      void
+      _GLIBCXX_DEPRECATED void
       erase(size_type __p)
       { erase(__p, __p + 1); }