Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
We are relying on call_traits in Future::Then to help type check the callables passed in. Adding support for function pointers would allow us to simplify code from
fut.Then([](const T& val) { return SomeCbFun(val); });
to...
fut.Then(SomeCbFun);