C++ Logo

std-proposals

Advanced search

Re: [std-proposals] DR - std::visit non-intuitive behavior + new semantic for C-style variadic functions + pattern matching but better

From: Nikl Kelbon <kelbonage_at_[hidden]>
Date: Tue, 6 Jun 2023 21:02:25 +0400
really no one want describe why visit([](...) {}, value) just compiles into
undefined behavior? We want to not change THIS behavior in standard?

сб, 3 июн. 2023 г. в 19:48, Thiago Macieira via Std-Proposals <
std-proposals_at_[hidden]>:

> On Saturday, 3 June 2023 04:09:17 PDT Nikl Kelbon via Std-Proposals wrote:
> > So i propose to allow pass non-trivial types to C-style variadic by
> passing
> > void* (and materialization + pass address for prvalues) to them or
> atleast
> > remove this error-provoking hole.
>
> I don't even know if this is a reasonable suggestion. It's such a
> fundamental
> change that it requires a full paper and exploration of side-effects.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Software Architect - Intel DCAI Cloud Engineering
>
>
>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>

Received on 2023-06-06 17:02:39