Skip to content

Commit

Permalink
<compare> implement == for comparison categories (#242)
Browse files Browse the repository at this point in the history
WG21-P1614 "The Mothership has Landed" added `==` operators to the comparison category types (`weak_equality`, `strong_equality`, `partial_ordering`, `weak_ordering`, and `strong_ordering`) defined in `<compare>`. This PR implements those operators to bring the comparison category types up to spec once again. It also implements P1614R2's removal of operators that rewrite into calls to `operator==(X, nullptr_t)` for each comparison category type `X`.

Drive-by changes:
* Move the TODO list of tasks for WG21-P0768 "Library Support for the Spaceship (Comparison) Operator" completion out of `<compare>` and into #64
* Remove the `#if 0 // Not yet implemented` block from `<compare>`
  • Loading branch information
CaseyCarter committed Nov 1, 2019
1 parent d736fe4 commit 1d09433
Showing 1 changed file with 172 additions and 113 deletions.

0 comments on commit 1d09433

Please sign in to comment.