C++ Logo


Advanced search

Subject: Re: [std-proposals] What happened on "Null safety" in p0946r0 about p <=> nullptr
From: Jake Arkinstall (jake.arkinstall_at_[hidden])
Date: 2019-12-05 03:55:57

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.

STD-PROPOSALS list run by std-proposals-owner@lists.isocpp.org

Standard Proposals Archives on Google Groups