You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include <cxx_function.hpp>
int foo(int);
cxx_function::function<int(), int(int)> f = foo;
cxx_function::function<int(int), int()> g = foo;
My impression from the README is that this code is supposed to compile. It doesn't.
I don't see any test cases in test/ that try to use multiple signatures, so my working hypothesis is that the README is simply over-optimistically out-of-sync with what's actually implemented.
The text was updated successfully, but these errors were encountered:
...Oh wait, I mixed up my product types with my sum types. Presumably this is not supposed to compile, after all, because foo is not invokable with both signatures.
There are some testcases in constructible.cpp to ensure that certain overloads compile (or, like this one, SFINAE), but of course more and deeper testing would be better and welcome.
https://godbolt.org/z/RcyhgH
My impression from the README is that this code is supposed to compile. It doesn't.
I don't see any test cases in
test/
that try to use multiple signatures, so my working hypothesis is that the README is simply over-optimistically out-of-sync with what's actually implemented.The text was updated successfully, but these errors were encountered: