This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: basic_string<> - operator+
- To: Ryszard Kabatek <kabatek@chemie.uni-halle.de>
- Subject: Re: basic_string<> - operator+
- From: Benjamin Kosnik <bkoz@cygnus.com>
- Date: Fri, 25 Jun 1999 12:29:06 -0700 (PDT)
- cc: libstdc++@sourceware.cygnus.com
> You call the non-const begin function - it makes __str unsharable.
It has to be unsharable, __str is getting modified and you don't want to
step on the original string, __rhs.
-benjamin