Re: bug or not

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux