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
US195 18.05.2 Remove concept "boolean" and use convertible_to<bool> instead P1934 P1964 #193
Comments
LEWG in Belfast: Forward to LWG for C++20. |
LWG small group looked at that on Wednesday morning: there is paper P1934 cplusplus/papers#680. There is also alternative D1964 (attached to the LEWG wiki). We probably want to have LEWG look at that before following the recommendation. |
See also P1964 Casting convertible_to<bool> considered harmful cplusplus/papers#698 |
Reviewed Monday afternoon full group in Prague -- P1964 will be reviewed later. |
LWG Tuesday afternoon in Prague - accept 1964 for C++20 |
Accepted with modification. See paper P1964R1. |
The boolean concept is over-complicated and fails to capture what it intends because doing so would require it to be recursive (i.e., b satisfies boolean iff the expression b && b also satisfies boolean, etc.). LEWG decided in Cologne that the boolean concept should be removed and all uses of it in the library be replaced with convertible_to<bool>.
Proposed change:
Remove the boolean concept and replace all uses of it with convertible_to<bool>.
The text was updated successfully, but these errors were encountered: