C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Fwd: set_new_handler extension

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Tue, 21 Feb 2023 08:26:57 +0000
On Tue, Feb 21, 2023 at 4:01 AM Phil Bouchard <boost_at_[hidden]> wrote:
>
> So yeah Frederick, if you don't mind I'll use your code and add
> garbage-collector-style deallocations, make it thread-local, allocation
> rate-based and type-based as a new project in my own Github with can
> simply link to under Linux and LGPL it:
> https://github.com/philippeb8


Fork this: https://github.com/healytpk/cplusplus-overload-new

I've replaced the hardcoded '8' with 'alignof(max_align_t)'.

With GNU g++, you need to include <new> otherwise you get a compiler
error for the 'noexcept'. On LVM clang++, I think you have to remove
the 'noexcept' to get it to compile.

Received on 2023-02-21 08:27:05