From: Jonathan Wakely Date: Tue, 18 Jan 2022 22:27:57 +0000 (+0000) Subject: libstdc++: Fix deprecated attribute for std::get_temporary_buffer X-Git-Tag: basepoints/gcc-13~1603 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a68080a121de0d1a0604dd71a96f42c8266e136b;p=thirdparty%2Fgcc.git 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 --git a/libstdc++-v3/include/bits/stl_tempbuf.h b/libstdc++-v3/include/bits/stl_tempbuf.h index 654c6a807478..db7cdb14ca97 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 - _GLIBCXX14_DEPRECATED + _GLIBCXX17_DEPRECATED pair<_Tp*, ptrdiff_t> get_temporary_buffer(ptrdiff_t __len) _GLIBCXX_NOEXCEPT {