This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: <strstream> vs <sstream>


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.




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