Skip to content

Commit

Permalink
<compare> implement == for comparison categories
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 microsoft#64
* Remove the `#if 0 // Not yet implemented` block from `<compare>`
  • Loading branch information
CaseyCarter committed Oct 31, 2019
1 parent d736fe4 commit 6163ea9
Showing 1 changed file with 172 additions and 113 deletions.

0 comments on commit 6163ea9

Please sign in to comment.