C++ Logo

std-proposals

Advanced search

Re: [std-proposals] auto-noexcept for move and lambdas

From: Simon Schröder <dr.simon.schroeder_at_[hidden]>
Date: Wed, 11 Jun 2025 20:43:44 +0200
> On Jun 10, 2025, at 3:55 PM, Jason McKesson via Std-Proposals <std-proposals_at_[hidden]> wrote:
>
> What you're asking for requires the compiler to look over arbitrary
> user-provided code.

Then, maybe this is a (future) use case for reflection? I still assume that we get meta classes in the future. We could use these meta classes to have one that looks at move constructors, analyzes their implementation and adds the proper noexcept(bool) to it. We might still have to wait a little to see how reflection works out.

Received on 2025-06-11 18:43:58