C++ Logo

std-proposals

Advanced search

Re: [std-proposals] 回复: 回复: A Proposal about A New Keyword assure

From: Simon Schröder <dr.simon.schroeder_at_[hidden]>
Date: Mon, 2 Jun 2025 06:59:29 +0200
> On Jun 2, 2025, at 6:55 AM, SD SH via Std-Proposals <std-proposals_at_[hidden]> wrote:
>
> Store entry points?
> No. Caller just finds the case it need.

How is the caller supposed to know if it does not see the function definition? I would claim this is the common case. Mostly inline functions are visible to the caller and the optimizer does already the right thing as mentioned before.

The function declaration would need a way to specify which assures are valid.

Received on 2025-06-02 04:59:46