From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pieter Nagel To: egcs@cygnus.com Subject: Re: New STL implementation from SGI Date: Fri, 10 Jul 1998 06:04:00 -0000 Message-id: References: <199807100002.RAA10346@atrus.synopsys.com> X-SW-Source: 1998-07/msg00372.html On Thu, 9 Jul 1998, Joe Buck wrote: > Actually I suspect that the SGI version will be slower as well as require > more memory in some applications: if copying strings from place to place > is common, but concatenation is less common, Ouch! I've been happily using strings to pass around megabyte-sized blobs of data, but reading about the SGI string class makes me want to run and reread the spec to check on how portable my use is - I thought C++ strings were *supposed* to have reference countng semantics. I'm all for including different implementations of the string class. How about renaming basic_string to shallow_copy_basic_string and deep_copy_basic_string respectively, and then have a mechanism to choose which one is typedefed to basic_string - thereby allowing one to write code that uses *both*? -- ,_ /_) /| / / i e t e r / |/ a g e l