Closed no-more-secrets closed 5 years ago
I can't reproduce this: https://godbolt.org/z/HY3EH2 Can you post exact version of Clang and compiler flags, or ideally a Compiler Explorer link?
Ok I updated my version of function_ref and the issue went away, so must have been fixed since I cloned my copy in late June 2019. Thanks
Here is a simple reproducer that is giving me a compiler error on the latest clang:
In particular, the error message says that the desired constructor is not viable because the condition
detail::is_invocable_r
is not holding true, so I'm thinking there might be an issue with your implementation ofis_invocable_r
?Relevant part of error message (I believe):