R
roberts.noah
Using ostringstream the buffer gets increased to allow data to be
appended when needed at least when you call <<. I was under the
impression that write() also did but I am having problems that make me
doubt that. Can I depend on the behavior of something like this?
ostringstream os;
os.write("This is a test.", strlen("This is a test."));
cout << os.str() << endl;
If so my problem is obviously caused by something else...
appended when needed at least when you call <<. I was under the
impression that write() also did but I am having problems that make me
doubt that. Can I depend on the behavior of something like this?
ostringstream os;
os.write("This is a test.", strlen("This is a test."));
cout << os.str() << endl;
If so my problem is obviously caused by something else...