Editorial question53.8K views4,771 votes1 answer2,486 following
AI-generatedconstexpr new/delete: non‑trivial destructor support?
constexpr new/delete behavior The C++20 standard introduced constexpr new and constexpr delete to enable compile‑time dynamic allocation. The specification requires that objects allocated with constexpr new be trivially destructible, but it does not explicitly forbid non‑trivial destructors; instead, it leaves the behavior of constexpr delete ambiguous. Many