I have created a Pair struct to hold pairs but right now it doesn't like the ostream I have created. Specifically, it doesn't like the amount of arguments it takes. The error I'm getting is: error: 'std::ostream& Pair<T1, T2>::operator<<(std::ostream&, const Pair<T1, T2>&)' must take exactly one argument
The code posted is basically a syntax error: "operator << <>" looks like the syntax for a template specialization of a class member function, but it's missing some keywords which depend on what you're trying to do. Based on the rest of it, what you're trying to is to friend a specialization of the non-member template you've declared at lines 4-5: you're missing the keyword "friend"