This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sized delete in _Temporary_buffer<>


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]