C++ Logo

std-proposals

Advanced search

Re: [std-proposals] std::elide

From: Lénárd Szolnoki <cpp_at_[hidden]>
Date: Sat, 08 Jun 2024 17:49:09 +0100
On 8 June 2024 16:46:31 BST, Frederick Virchanza Gotham via Std-Proposals <std-proposals_at_[hidden]> wrote:
>On Saturday, June 8, 2024, Robert A.H. Leahy wrote:
>
>>
>> Classes with unconstrained unary constructors are just broken, as you've
>> discovered.
>>
>
>
>So then should we write a paper to deprecate unary unconstrained
>constructors in C++26?
>
>I don't think there's anything wrong with unary unconstrained constructors.

They compete with the copy and move constructors, mostly in a bad way.

>I see how they're inconvenient for 'std::elide', but doesn't make them
>inherently broken.

Received on 2024-06-08 16:49:16