This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: ostringstream problem
- To: libstdc++@sourceware.cygnus.com
- Subject: Re: ostringstream problem
- From: Benjamin Kosnik <bkoz@cygnus.com>
- Date: Wed, 18 Aug 1999 22:27:59 -0700 (PDT)
Reporting-MTA: dns; cygnus.com
Received-From-MTA: DNS; blues.cygnus.com
Arrival-Date: Wed, 18 Aug 1999 22:26:28 -0700 (PDT)
Final-Recipient: RFC822; libstdc++@sourcware.cygnus.com
Action: failed
Status: 5.1.1
Remote-MTA: DNS; sourcware.cygnus.com
Diagnostic-Code: SMTP; 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
Last-Attempt-Date: Wed, 18 Aug 1999 22:26:30 -0700 (PDT)
- To: libstdc++@sourcware.cygnus.com
- From: Benjamin Kosnik <bkoz@blues.cygnus.com>
- Date: Wed, 18 Aug 1999 22:26:27 -0700 (PDT)
- cc: ecmorgan@lucent.com
>I'm willing to discuss this, but it is my contention that this is not a bug.
Whoops. I'm wrong. It's a bug.
The ctors for basic_istream/basic_ostream have to call init, which they
weren't doing. This is fixed and in CVS with this ChangeLog entry:
1999-08-18 Benjamin Kosnik <bkoz@cygnus.com>
* bits/std_istream.h: Correct initialization.
* bits/std_ostream.h: Likewise.
* bits/std_sstream.h: Likewise.
* bits/std_fstream.h: Likewise.
* testsuite/27_io/stringstream.cc: Add test case.
* bits/std_sstream.h: Replace ____string_type with __string_type.
* bits/basic_ios.h (basic_ios::rdbuf(sb*): Call clear(), as required.
* bits/std_ostream.h: Tweak dtor.
-Benjamin