> you can't just pass functions to F1 or F2, they have to be objects.
Why?
Why?
Edit: I found it - it's a 'template deduction guide' https://stackoverflow.com/questions/40951697/what-are-templa...
In C++20 this specific deduction guide is no longer required as it is implicitly generated for template aggregates, so even less boilerplate.
In the context of C++, struct / class types are more generic that function pointers and there's no real shortcut around this - that's how the language is specified.