I\'m writing string class on my own. And I have such code. I just want to overload operator=. This is my actual code, and I get error in last part of code.
operator=
You are missing class name:
This is global operator, = cannot be global:
=
S &operator=(const S &s)
You must define this as class function:
S & S::operator=(const S &s) // ^^^