Re: Operator overloading in C++

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux