-
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>
: Clang error when calling target()
on a const function
#3843
Comments
IIUC |
I understand that the standard states this. |
I don't think the standard cares about impossible types. It also allows |
LWG-3305 seems to be related, but the resolution seemly states that MSVC STL is just fine, and we should continue to accept function types and return null function pointers for them. |
Repros with VS 2022 17.7 Preview 2 x64 containing Clang 16.0.1.
Reduced from the original report DevCom-10402530 VSO-1843867 AB#1843867 "
std::function::target
is broken on clang-cl when called onconst
objects".The text was updated successfully, but these errors were encountered: