C++ Logo

std-proposals

Advanced search

Re: [std-proposals] std::elide

From: Thiago Macieira <thiago_at_[hidden]>
Date: Tue, 04 Jun 2024 07:49:48 -0700
On Tuesday 4 June 2024 07:14:17 GMT-7 Robert A.H. Leahy via Std-Proposals
wrote:
> Constrain your templated constructors properly, if you don't that's a design
> problem, not a problem with the language standard.

requires(T t) { !std::same_as<std::elide> }

or something. Easy.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel DCAI Fleet Engineering and Quality

Received on 2024-06-04 14:49:51