C++ Logo

std-proposals

Advanced search

Re: [std-proposals] std::came_from_new [[must_new]]

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Fri, 4 Sep 2026 06:37:50 +0100
On Fri, Sep 4, 2026 at 5:55 AM Simon Schröder wrote:
>
> I would claim that this feature would be useful.
> However, it does not follow the zero cost abstraction principle.

There's zero overhead in marking a constructor as [[must_new]].

Received on 2026-09-04 05:38:09