This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-2.95 and SGI STL 3.2
- To: Steinar Bang <sb at metis dot no>
- Subject: Re: gcc-2.95 and SGI STL 3.2
- From: Tim Waugh <tim at cyberelk dot demon dot co dot uk>
- Date: Mon, 21 Jun 1999 09:09:42 +0100 (GMT)
- cc: egcs at egcs dot cygnus dot com
On 21 Jun 1999, Steinar Bang wrote:
> The native g++ <string> uses refcounting. The SGI STL <string> always
> does a deep copy.
I don't think refcounting actually helps much with strings -- you have to
do a deep copy whenever the data is accessed anyway (even read: think
'string s="str",t; char &c=s[0];').
Tim.
*/