This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: standard library: stringstreams
- To: scherrey at proteus-tech dot com
- Subject: Re: standard library: stringstreams
- From: Joe Buck <jbuck at Synopsys dot COM>
- Date: Fri, 15 Jan 99 10:20:41 PST
- Cc: rich dot c at es dot co dot nz, egcs at cygnus dot com
> Are you talking about strstreams (which *are* supported in egcs already)? If
> not, how are these different and what does the standard say about them?
So, strstreams are different. In a stringstream, the buffer is a string.
In strstream, you get char* and const char* access to the buffer, and the
user has to worry about memory management and understand what "freezing"
means.
The library that ships with egcs doesn't have stringstream. There's a
project to do a new libstdc++ inside of Cygnus, but it's still incomplete.