This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++20 status.

3395. Definition for three-way comparison needs to be updated (US 152)

Section: 99 [defns.comparison] Status: C++20 Submitter: Jeff Garland Opened: 2020-02-10 Last modified: 2021-02-25

Priority: 1

View all issues with C++20 status.

Discussion:

Addresses US 152

This definition in 99 [defns.comparison] should be updated to accommodate the new 3-way comparison operator (7.6.8 [expr.spaceship]) as well.

[2020-02 Moved to Immediate on Tuesday in Prague.]

Proposed resolution:

This wording is relative to N4849.

  1. Modify 99 [defns.comparison] as indicated:

    comparison function

    operator function (12.4 [over.oper]) for any of the equality (7.6.10 [expr.eq]), or relational (7.6.9 [expr.rel]), or three-way comparison (7.6.8 [expr.spaceship]) operators