C++ Logo

std-proposals

Advanced search

Re: [std-proposals] mandatory compiler diagnostic for converting function to boolean

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sun, 10 Sep 2023 15:46:25 -0700
On Sunday, 10 September 2023 13:21:22 PDT Edward Catmur via Std-Proposals
wrote:
> Not quite true; the standard could deprecate the conversion. However,
> implementations would be free to disregard that deprecation and are likely
> to do so; see eg the rule of five fiasco.

If you know it's going to be ignored, why do it?

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

Received on 2023-09-10 22:46:26