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: Thiago Macieira <thiago_at_[hidden]>
Date: Sat, 03 Jun 2023 08:48:20 -0700
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

Received on 2023-06-03 15:48:22