C++ Logo

std-proposals

Advanced search

[std-proposals] Static/constant-initialized allocations

From: Torben Thaysen <thaysentorben_at_[hidden]>
Date: Fri, 5 Aug 2022 12:09:52 +0200
Hello, I want to propose introducing statically initialized allocations to
C++. These allocations would be created by allowing the initializers of
constinit variables to leak allocations that then become accessible at
runtime.
Several aspects need to be considered here including wherever these
allocations can be deleted and how this interacts with user replacements of
operator delete. For details see the draft here
<https://drive.google.com/uc?id=1kxouMrz9uUNRxIcsrL90kVA5NuKb20ed>.
Looking forward to your feedback!

Received on 2022-08-05 10:10:05