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

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

Section: 16.3.4 [defns.comparison] Status: WP Submitter: Jeff Garland Opened: 2020-02-10 Last modified: 2020-02-24

Priority: 1

View all issues with WP status.

Discussion:

Addresses US 152

This definition in 16.3.4 [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 16.3.4 [defns.comparison] as indicated:

    comparison function

    operator function (12.6 [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