Title
Comparison category operator== are mis-specified
Status
resolved
Section
[cmp.categories]
Submitter
Barry Revzin

Created on 2019-09-14.00:00:00 last changed 60 months ago

Messages

Date: 2019-12-29.17:47:30

[ Resolved by the adoption of P1946R0 in Belfast ]

Date: 2019-11-07.08:57:59

[ 2019-11 Wednesday night issue processing - status to Open ]

Our preference is for CWG to fix this. JW to provide wording in case CWG cannot.

Date: 2019-10-31.00:00:00

[ 2019-10-31 Issue Prioritization ]

Priority to 1 after reflector discussion.

Date: 2019-09-14.00:00:00

All the defaulted operator==s in [cmp.categories] are currently specified as:

friend constexpr bool operator==(strong_ordering v, strong_ordering w) noexcept = default;

But the rule for defaulting operator== requires that the arguments be const&. All five should all look like:

friend constexpr bool operator==(const strong_ordering& v, const strong_ordering& w) noexcept = default; 
History
Date User Action Args
2019-12-29 17:47:30adminsetmessages: + msg10902
2019-12-29 17:47:30adminsetstatus: open -> resolved
2019-11-07 08:57:59adminsetmessages: + msg10792
2019-11-07 08:57:59adminsetstatus: new -> open
2019-10-31 18:46:30adminsetmessages: + msg10712
2019-09-14 00:00:00admincreate