Suppose I have a template function:
template
T produce_5_function() { return T(5); }
How can I pass this ent
How about wrapping that function?
template
struct produce_5_function_wrapper {
T operator()() const { return produce_5_function(); }
};
Then you can use the wrapper instead of the function:
int five = client_template< produce_5_function_wrapper >()();
Using the template function alone will not work, there's no such thing as "template template functions".