C++ – statement cannot resolve address for overloaded function

std::endl is a function template. Normally, it’s used as an argument to the insertion operator <<. In that case, the operator<< of the stream in question will be defined as e.g. ostream& operator<< ( ostream& (*f)( ostream& ) ). The type of the argument of f is defined, so the compiler will then know the exact overload of the function. It’s comparable … Read more