I am trying to do the following:
template
std::ifstream& operator>> (std::ifstream& fin, List l)
{
T temp;
l.r
I've had the same problem and I've fixed it by changing include order.
As phresnel says, the compiler cannot resolve that on the 1st phase, which in my case was because the header with the problematic template method was included before the one with the inner method that couldn't be resolved.
Adding the needed header include removed the error for me. Hope this helps someone else.