C++ Logo


Advanced search

Re: [std-proposals] Relax the restriction on the operand of a single-object delete-expression

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sat, 01 Oct 2022 13:06:46 -0700
On Saturday, 1 October 2022 09:23:25 PDT Jason McKesson via Std-Proposals
> It doesn't make sense to use two-stage object creation but one-stage
> object destruction. Especially when there are cases where it
> explicitly will not work. Better to forbid them all the time than to
> encourage people to roll the dice.

Let me take one step further: it is only valid to use a two-step creation in
place of a one-step when you know it's the same. So if you know it's the same,
why are you writing more?

Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2022-10-01 20:06:48