This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc-2.95 and SGI STL 3.2


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]