public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org
Subject: [gcc r9-10050] libstdc++: Deprecate __gnu_cxx::rope::erase(size_type) [PR102048]
Date: Mon,  9 May 2022 16:39:29 +0000 (GMT)	[thread overview]
Message-ID: <20220509163929.288D23858D32@sourceware.org> (raw)

https://gcc.gnu.org/g:44afdb5f23ed752fb7b3ac095831ba65901c45f2

commit r9-10050-g44afdb5f23ed752fb7b3ac095831ba65901c45f2
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu Apr 21 14:12:25 2022 +0100

    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 and GCC 9.
    
    libstdc++-v3/ChangeLog:
    
            PR libstdc++/102048
            * include/ext/rope (rope::erase(size_type)): Deprecate broken
            function.
    
    (cherry picked from commit 05ad54a8e67b31126351b9f15e1e42ac67650d6d)

Diff:
---
 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 127d113c349..44ff974eba7 100644
--- a/libstdc++-v3/include/ext/rope
+++ b/libstdc++-v3/include/ext/rope
@@ -2383,7 +2383,7 @@ protected:
       }
 
       // Erase, single character
-      void
+      _GLIBCXX_DEPRECATED void
       erase(size_t __p)
       { erase(__p, __p + 1); }


                 reply	other threads:[~2022-05-09 16:39 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=20220509163929.288D23858D32@sourceware.org \
    --to=redi@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: link
Be 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).