For clarification, I'm citing James McNellis answer in the post "Template assignment operator overloading mystery":
The implicitly-declared copy assignment operator, which is declared as follows, is still generated:
Wrapper& operator=(const Wrapper&);
Now I have a similar class and would like to know what the definition of this operator needs to look like.
Here's the class for recall:
template<typename T>
struct Wrapper;
What is now the correcting match:
template<typename T>
Wrapper& Wrapper<T>::operator=(const Wrapper&)
or
Wrapper& Wrapper::operator=(const Wrapper&)
?
Or is this just the same?