Skip to content
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

Cannot use bind when it associates to something that requires an argument #86

Closed
rmpowell77 opened this issue Feb 5, 2023 · 2 comments
Milestone

Comments

@rmpowell77
Copy link
Owner

I'm finding that I cannot create a bind with a lambda that requires an argument. get_arity doesn't work.

@rmpowell77 rmpowell77 added this to the v0.1.2 milestone Feb 5, 2023
@rmpowell77
Copy link
Owner Author

Specifically this type of construct fails:

                .bind([](auto& e) { (void)e; }),

with:

[build] In file included from /Users/richardpowell/Development/github.com/rmpowell77/wxUI.git/examples/HelloWorld/ExtendedExample.cpp:27:
[build] In file included from /Users/richardpowell/Development/github.com/rmpowell77/wxUI.git/include/wxUI/wxUI.h:30:
[build] In file included from /Users/richardpowell/Development/github.com/rmpowell77/wxUI.git/include/wxUI/BitmapButton.h:26:
[build] /Users/richardpowell/Development/github.com/rmpowell77/wxUI.git/include/wxUI/Widget.h:50:39: error: reference to overloaded function could not be resolved; did you mean to call it?
[build] struct get_arity : get_arity<decltype(&T::operator())> {
[build]           
...

rmpowell77 added a commit that referenced this issue Feb 5, 2023
rmpowell77 added a commit that referenced this issue Feb 13, 2023
Issue #86: Cannot use bind when it associates to something that requi…
@rmpowell77
Copy link
Owner Author

Fixed in #87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant