This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: can I use SGI STL string class under g++/libstdc++?
- To: ncm at zembu dot com
- Subject: Re: can I use SGI STL string class under g++/libstdc++?
- From: Benjamin Kosnik <bkoz at cygnus dot com>
- Date: Fri, 4 Feb 2000 16:49:38 -0800 (PST)
- cc: David Baraff <deb at pixar dot com>, libstdc++ at sourceware dot cygnus dot com
I thought the two bits were:
1) stl/stl_alloc.h: -- for now, works with _PTHREADS defined
2) bits/bastring.h: release() -- needs the port to v3.
...
??
(the port seems pretty straightforward)
In anycase, I don't think ref counting will make a difference in the
stringstream classes. You can just run "make check" with the modified
string class , and if things start failing then it's obvious that
something is not right.
-benjamin
On Fri, 4 Feb 2000 ncm@zembu.com wrote:
> On Fri, Feb 04, 2000 at 03:55:51PM -0800, David Baraff wrote:
> > Is anything really terrible going to happen if I turn off reference
> > counting in your string class? I need it to be MT-safe.
>
> You can use the SGI string class instead. I misdoubt it's compatible
> with stringstream, but I don't know of any other problems.
>
> Nathan Myers
> ncm@cantrip.org
>