I\'m having some problems defining some operator overloads for template classes. Let\'s take this hypothetical class for example.
template cl
You must specify that the friend is a template function:
MyClass& operator+=<>(const MyClass& classObj);
See this C++ FAQ Lite answer for details.