///Destructor -> writes the frest of the data
~basic_pipebuf()
{
- if (is_open())
- overflow(Traits::eof());
+ if (basic_pipebuf::is_open())
+ basic_pipebuf::overflow(Traits::eof());
}
///Move construct from a pipe.
if (this->pptr() == this->epptr())
{
bool wr = this->_write_impl();
- *this->pptr() = ch;
- this->pbump(1);
if (wr)
+ {
+ *this->pptr() = ch;
+ this->pbump(1);
return ch;
+ }
}
else
{