[PATCH] Deprecate std::get_temporary_buffer
Jonathan Wakely
jwakely@redhat.com
Tue Aug 14 20:34:00 GMT 2018
This was deprecated in C++17, and has been removed from the current
draft. This adds the dprecated attribute for C++17 and later.
We can't actually remove it for C++2a because we use it (indirectly)
in stl_algo.h. We could rename it to __get_temporary_buffer for our
internal uses, and then add back get_temporary_buffer as a simple
forwarding function guarded by:
#if __cplusplus <= 201703L || _GLIBCXX_USE_DEPRECATED
This patch doesn't do that though.
Does anybody object to adding the deprecated attribute here?
Does anybody want to argue in favour of completely removing it for
C++2a?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 2465 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20180814/19444470/attachment.bin>
More information about the Libstdc++
mailing list