template <typename T>
void sort(T::iterator begin, T::iterator end){ ... }
I get this error on the function declaration:
'variable or field 'sort' declared void'
I tried adding std::
before the T
s in the parameters, didn't help. Tried adding typename
before the T
s, no luck. What's the problem?