This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: Strstream??


Benjamin Kosnik wrote:
> 
> At some point in the hazy future, strstream will be implemented on top of
> standards-conformant stringstreams. Thus this header will be supported
> eventually.
> 
> This is not currently done.
> 
> There is no timetable to do it. Feel free to try.

The one included with SGI new stdlib seams to work ok.  I had to make
the types public in the class basic_streambuf. I think this is a bug as
no qualifier is specified at beginning of the class definition.

However after that my simple test program:

#include <iostream>
#include <strstream>
#include <strstream.cxx>

int main() {
   using namespace std;
   strstream ss;
   ss << 10.89;
   ss << " ";
   ss << 89;
   ss << " by ";
   cout << ss.str() << 10.89 << endl;
}

worked OK.

Perhaps you should save your self the effort and just use there's?

-- 
Kevin Atkinson
kevinatk@home.com
http://metalab.unc.edu/kevina/

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