-
Notifications
You must be signed in to change notification settings - Fork 60
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
Use sizeof(T) == 0
instead of always_false
#740
base: master
Are you sure you want to change the base?
Conversation
In my defense P2593R1 (accepted for C++23) where relaying on |
Ah I didn't get that it was |
Yeah, |
sizeof(T) && false
instead of always_falsesizeof(T) == 0
instead of always_false
Given that the current |
I don't have a strong opinion about this one. My preference would be not to include something that may or not be removed when switching to C++23 when there is already a (simple) way. So feel free to do whatever you want with this PR. |
Whichever workaround we choose now with C++23 we can replace it with |
Introduced in #737 (also see #736 (comment)) I think it is not necessary to add that and the included header can be removed.
Sorry :(
BEGINRELEASENOTES
sizeof(T) == 0
instead ofalways_false
ENDRELEASENOTES