can I use SGI STL string class under g++/libstdc++?

Benjamin Kosnik bkoz@cygnus.com
Sat Apr 1 00:00:00 GMT 2000


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
> 


More information about the Libstdc++ mailing list