This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Replacing string += "." by '.'
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- Cc: libstdc++ at gcc dot gnu dot org, pcarlini at unitus dot it
- Date: Mon, 25 Nov 2002 12:10:50 -0600
- Subject: Re: Replacing string += "." by '.'
- References: <Pine.LNX.4.44.0211251008240.8951-100000@gandalf.ticam.utexas.edu>
>triggered by a recent patch of Paolo, I thought about the implications of
>replacing adding single characters like
> __str += '=';
>by
> __str += "=";
>
>It seemed to me that the latter is more expensive.
Absolutely. I was a bit surprised to see this as well.
-benjamin