This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Operator overloading in C++


I think you didn't show us the important part. I'm surprised that error message didn't tell you the type of u1 (or did you clip that as well?) Without knowing how u1 was declared, I can't guess why you think u1+=" "; has any connection to your class.

Meanwhile, take another look it the method I quoted below from your post. Why do you think that is anything other than infinite recursion? (So once you fix your other errors, this one would still break the whole thing).

Sebastian Faubel wrote:
		unsigned_string& append(const unsigned_string& __s)
		{
			return append(__s);
		}

		


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]