| 10953 | |
| 10954 | private: |
| 10955 | int overflow( int c ) override { |
| 10956 | sync(); |
| 10957 | |
| 10958 | if( c != EOF ) { |
| 10959 | if( pbase() == epptr() ) |
| 10960 | m_writer( std::string( 1, static_cast<char>( c ) ) ); |
| 10961 | else |
| 10962 | sputc( static_cast<char>( c ) ); |
| 10963 | } |
| 10964 | return 0; |
| 10965 | } |
| 10966 | |
| 10967 | int sync() override { |
| 10968 | if( pbase() != pptr() ) { |
nothing calls this directly
no outgoing calls
no test coverage detected