C++ Logo


Advanced search

Re: nullptr_t and nullopt_t should both have operator<=> and operator== to enable the *_with concepts

From: Nevin Liber <nevin_at_[hidden]>
Date: Tue, 13 Jul 2021 13:12:30 -0500
On Fri, Jul 9, 2021 at 5:12 PM Jens Maurer via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#583
> If there is some feeling or use-case that nullptr < nullptr
> should be well-formed, that could be proposed.

What was the rationale for removing it? What was the rationale for
keeping nullptr
== nullptr? That rationale is what a paper would have to argue against.
CWG 583 and 1512 talked about problems with heterogeneous comparisons, not
homogeneous comparisons.
 Nevin ":-)" Liber  <mailto:nevin_at_[hidden] <nevin_at_[hidden]>>

Received on 2021-07-13 13:13:13