C++ Logo

std-proposals

Advanced search

Re: What happened on "Null safety" in p0946r0 about p <=> nullptr

From: Jake Arkinstall <jake.arkinstall_at_[hidden]>
Date: Thu, 5 Dec 2019 09:55:57 +0000
Out of pure interest, what is the problem in returning a strong ordering
with nullptr always being less than p, unless p is a nullptr too, in which
case the result would be equality?

As nullptr is implicitly convertible to any pointer, that's the outcome
that one might expect.

But if not, then ill formed is infinitely better than unspecified IMO.

Received on 2019-12-05 03:58:28