aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-01-18 22:27:57 +0000
committerJonathan Wakely <jwakely@redhat.com>2022-01-19 00:58:25 +0000
commita68080a121de0d1a0604dd71a96f42c8266e136b (patch)
tree6a41fbdbf0df5537f04d1c8c119909ea02dae150
parent72ce3fd2c72825c73ba6febae5aeb5c189f3f62c (diff)
downloadgcc-a68080a121de0d1a0604dd71a96f42c8266e136b.zip
gcc-a68080a121de0d1a0604dd71a96f42c8266e136b.tar.gz
gcc-a68080a121de0d1a0604dd71a96f42c8266e136b.tar.bz2
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.
-rw-r--r--libstdc++-v3/include/bits/stl_tempbuf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/stl_tempbuf.h b/libstdc++-v3/include/bits/stl_tempbuf.h
index 654c6a8..db7cdb1 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
{