Open wak-google opened 1 year ago
@Naios
It would be nice if function_base supported deduction guides similar to std::function so that lambdas can have sensible type erased deductions.
function_base
https://en.cppreference.com/w/cpp/utility/functional/function/deduction_guides
2d3a878ef19dd5d2fb188898513610fac0a48621
This should compile
fu2::unique_function([](int &i) { return i + 5; })
The idea is awesome, I would highly appreciate a pullrequest for this feature.
@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
2d3a878ef19dd5d2fb188898513610fac0a48621
Expected Behavior
This should compile