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 r12-6710] libstdc++: Fix deprecated attribute for std::get_temporary_buffer
Date: Wed, 19 Jan 2022 01:03:25 +0000 (GMT)	[thread overview]
Message-ID: <20220119010325.D4B243857C6A@sourceware.org> (raw)

https://gcc.gnu.org/g:a68080a121de0d1a0604dd71a96f42c8266e136b

commit r12-6710-ga68080a121de0d1a0604dd71a96f42c8266e136b
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Jan 18 22:27:57 2022 +0000

    libstdc++: Fix deprecated attribute for std::get_temporary_buffer
    
    This was deprecated in C++17, not C++14.
    
    libstdc++-v3/ChangeLog:
    
            * include/bits/stl_tempbuf.h (get_temporary_buffer): Change
            _GLIBCXX14_DEPRECATED to _GLIBCXX17_DEPRECATED.

Diff:
---
 libstdc++-v3/include/bits/stl_tempbuf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/include/bits/stl_tempbuf.h b/libstdc++-v3/include/bits/stl_tempbuf.h
index 654c6a80747..db7cdb14ca9 100644
--- a/libstdc++-v3/include/bits/stl_tempbuf.h
+++ b/libstdc++-v3/include/bits/stl_tempbuf.h
@@ -96,7 +96,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
    * Provides the nothrow exception guarantee.
    */
   template<typename _Tp>
-    _GLIBCXX14_DEPRECATED
+    _GLIBCXX17_DEPRECATED
     pair<_Tp*, ptrdiff_t>
     get_temporary_buffer(ptrdiff_t __len) _GLIBCXX_NOEXCEPT
     {


                 reply	other threads:[~2022-01-19  1:03 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=20220119010325.D4B243857C6A@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).