-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
<functional>: std::is_convertible is broken for std::bind functors #952
Comments
I'm tagging this "enhancement" rather than "bug" because the expected behavior is not Standard-mandated behavior so much as a desirable extension. |
I don't understand why it is not Standard-mandated. |
It's because nothing in I'm 95% sure that this analysis is still correct. If the Standardese actually requires |
After WG21-P1065, |
Close enough to it, yes. So let's call this a bug. |
Oh yeah, I noticed expression-equivalent's conditional |
Describe the bug
std::is_convertible
fails to compile broken for a lambda passed tostd::bind
Command-line test case
Expected behavior
The program should compile.
(It should print zero, as the types are not expected to be convertible)
STL version
Additional context
This item is also tracked on Developer Community as DevCom-317991 and by Microsoft-internal VSO-671111 / AB#671111.
The text was updated successfully, but these errors were encountered: