Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

operator< for error_condition in wrong(?) place #880

Closed
jwakely opened this issue Aug 4, 2016 · 2 comments
Closed

operator< for error_condition in wrong(?) place #880

jwakely opened this issue Aug 4, 2016 · 2 comments

Comments

@jwakely
Copy link
Member

jwakely commented Aug 4, 2016

std::error_condition is LessThanComparable, but the operator< overload does not appear in the header synopsis in [system_error.syn].

It is tucked away at the end of the class synopsis in [syserr.errcondition.overview] and then defined in [syserr.errcondition.nonmembers], when [syserr.compare] would seem more sensible.

@jwakely
Copy link
Member Author

jwakely commented Aug 4, 2016

And similarly for operator< for error_code

@jwakely
Copy link
Member Author

jwakely commented Aug 4, 2016

and operator<< for error_code is also missing from the header synopsis

jwakely added a commit to jwakely/draft that referenced this issue Aug 4, 2016
…opsis

Move definitions of less-than operators to [syserr.compare]

Fixes cplusplus#880
jwakely added a commit to jwakely/draft that referenced this issue Nov 13, 2016
…opsis

Move definitions of less-than operators to [syserr.compare]

Fixes cplusplus#880
tkoeppe pushed a commit that referenced this issue Nov 18, 2016
…psis (#881)

Move definitions of less-than operators to [syserr.compare]

Fixes #880.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant