C++ Logo

std-proposals

Advanced search

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

From: Edward Catmur <ecatmur_at_[hidden]>
Date: Mon, 11 Sep 2023 21:14:14 -0500
On Mon, 11 Sept 2023 at 18:35, Thiago Macieira via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> 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?
>

Yes, in this case it (probably) wouldn't do much good. I'm pointing out
that in the best case there are options available that are less drastic
than immediate removal.

Received on 2023-09-12 02:14:27