sized delete in _Temporary_buffer<>
Jonathan Wakely
jwakely@redhat.com
Thu Jul 18 10:09:00 GMT 2019
On 18/07/19 07:41 +0200, François Dumont wrote:
>As we adopted the sized deallocation in the new_allocator why not
>doing the same in _Temporary_buffer<>.
>
>Â Â Â * include/bits/stl_tempbuf.h
>(__detail::__return_temporary_buffer): New.
>Â Â Â (~_Temporary_buffer()): Use latter.
>Â Â Â (_Temporary_buffer(_FIterator, size_type)): Likewise.
>
>Tested w/o activating sized deallocation. I'll try to run tests with
>this option activated.
As the manual says, it's enabled by default for C++14 and later.
>Ok to commit ?
OK for trunk, thanks.
More information about the Libstdc++
mailing list