NullOStream.cpp 233 B

12345678910
  1. #include "NullOStream.h"
  2. void NullOStream::avoidOutOfLineVirtualCompilerWarning()
  3. {
  4. }
  5. int NullStreambuf::overflow(int c){
  6. setp(dummyBuffer, dummyBuffer + sizeof(dummyBuffer));
  7. return (c == traits_type::eof()) ? '\0' : c;
  8. }