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

Implement deduction guides #56

Open
wak-google opened this issue Dec 3, 2022 · 1 comment
Open

Implement deduction guides #56

wak-google opened this issue Dec 3, 2022 · 1 comment

Comments

@wak-google
Copy link
Contributor

@Naios

It would be nice if function_base supported deduction guides similar to std::function so that lambdas can have sensible type erased deductions.

https://en.cppreference.com/w/cpp/utility/functional/function/deduction_guides


Commit Hash

2d3a878

Expected Behavior

This should compile

fu2::unique_function([](int &i) { return i + 5; })
@Naios
Copy link
Owner

Naios commented Dec 5, 2022

The idea is awesome, I would highly appreciate a pullrequest for this feature.

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

No branches or pull requests

2 participants