gcc-2.95 and SGI STL 3.2

Tim Waugh tim@cyberelk.demon.co.uk
Mon Jun 21 01:11:00 GMT 1999


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.
*/



More information about the Gcc mailing list