template void foo(std::function callback) {} template voi
You don't have any deduction for the type parameters of bar, they are fully specified.
bar
You still have the tail of the pack to deduce in foo, and that fails because the lambda isn't a std::function.
foo
std::function