I have a very small question:
Trying to mimic functors i have a simple compare template function which i try
to pass it to calculate a simple min od 2 doubles
bool is not a function. The compiler can resolve the template types from the paramater provided, hence you don't need to provide the template paramter: minimum(2.3,4.5,cmp); suffice
I have tried like you suggested and gives me the same compile error
error: no matching function for call to 'minimum(double, double, <unresolved overloaded function type>)'