C++ Logo


Advanced search

Re: [std-proposals] set_new_handler extension

From: Jens Maurer <jens.maurer_at_[hidden]>
Date: Sun, 12 Feb 2023 17:41:21 +0100
On 12/02/2023 17.28, Jason McKesson via Std-Proposals wrote:
> What you want is to be able to globally replace what the default
> `operator new` and `operator delete` do, even outside of the current
> translation unit.

That's already the specified behavior when you provide your own
definition of global "operator new" and global "operator delete":
You replace those functions program-wide.

The implementation you use may behave differently when DLLs
are involved; please discuss this with your implementer.


Received on 2023-02-12 16:41:28