I am trying to empty and reset my internal buffer in my derived sync method.
Am I correct in assuming I can call setp( std::streambuf::pbase(),
std::streambuf::pbase()); to reset the internal buffer?
Also, I am unsure whether the pointer returned by epptr() is supposed to
point just beyond the end of the sequence or at the last element of the
sequence? As such, should the second argument to my setp call be
std::streambuf::pbase() + 1?
Thanks. I've got a book on streams coming for Christmas by the way. Yay!
References on the topic seem to be scarce, yet it is such a huge topic. I
guess most people ignore it as much as they can.