[PATCH] Deprecate std::get_temporary_buffer

Ville Voutilainen ville.voutilainen@gmail.com
Tue Aug 14 20:58:00 GMT 2018


On 14 August 2018 at 23:34, Jonathan Wakely <jwakely@redhat.com> wrote:
> 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?

Not me.

> Does anybody want to argue in favour of completely removing it for
> C++2a?

Not me.



More information about the Libstdc++ mailing list