C++ Logo

std-proposals

Advanced search

Re: [std-proposals] comparison between pointers and bool

From: Tiago Freire <tmiguelf_at_[hidden]>
Date: Mon, 12 May 2025 14:23:06 +0000
Why?
if (myPointer)
is already allowed.

From: Std-Proposals <std-proposals-bounces_at_[hidden]> On Behalf Of Tymi via Std-Proposals
Sent: Monday, May 12, 2025 4:21 PM
To: std-proposals_at_[hidden]
Cc: Tymi <tymi.cpp_at_[hidden]>
Subject: [std-proposals] comparison between pointers and bool

I think pointer == bool should be permitted
For instance
`if (myPointer == false) throw nullptr;`

Tymi.

Received on 2025-05-12 14:23:09