This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: bug or not
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: "Anthony Christopher'" <anthonyc at blarg dot net>, gcc-help at gcc dot gnu dot org
- Date: Sun, 21 Sep 2003 09:59:25 -0500
- Subject: Re: bug or not
Hi Anthony,
The problem isn't that you are using a ostringstream's string-parm constructor.
The problem is that you are printing out the string used to INITIALIZE the ostringstream. What you should be doing is printing out the CURRENT contents of the ostringstream buffer.
Use the...
cout << outBuffer.str() << endl;
...method of accessing the ostringstream's string in the first situation.
HTH,
--Eljay