This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: <strstream> vs <sstream>
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: imarkov at eecs dot umich dot edu
- Cc: gcc <gcc at gnu dot org>
- Date: Sat, 31 Aug 2002 13:12:47 +0200
- Subject: Re: <strstream> vs <sstream>
- References: <1030790905.3d709ef955786@www.eecs.umich.edu>
Igor Markov wrote:
g++ 3.1.1 and 3.2 ( which I am using on Debian Linux) complain about
#include <strstream>
and I am having trouble with the suggested replacement
#include <sstream>
The <sstream> equivalent is, roughly:
#include <sstream>
int main() { std::string buf; std::ostrstream s(buf); }
I suggest perusing §13.11 of Josuttis (ISBN: 0201379260).
Ciao, Paolo.
P.S. Strictly speaking, this list is "... for general development discussions...": gcc-help is more appropriate for this kind of questions.