C++ template function deducing return type
I’m trying to create a simple template function which takes a callable object and a couple of int values, and returns the result of invoking the callable with those values. How do I get the function to figure out the return value’s type, and also be able to create such a type with its default… Read More C++ template function deducing return type