basic_ipstream& operator=(basic_ipstream && lhs)
{
std::basic_istream<CharT, Traits>::operator=(std::move(lhs));
- _buf = std::move(lhs);
+ _buf = std::move(lhs._buf);
std::basic_istream<CharT, Traits>::rdbuf(&_buf);
+ return *this;
};
///Move assignment of a pipe.
basic_ipstream& operator=(pipe_type && p)
///Get a rvalue reference to the pipe. Qualified as rvalue.
pipe_type && pipe() && {return std::move(_buf).pipe();}
///Check if the pipe is open
- bool is_open() const {return _buf->is_open();}
+ bool is_open() const {return _buf.is_open();}
///Open a new pipe
void open()
basic_opstream& operator=(basic_opstream && lhs)
{
std::basic_ostream<CharT, Traits>::operator=(std::move(lhs));
- _buf = std::move(lhs);
+ _buf = std::move(lhs._buf);
std::basic_ostream<CharT, Traits>::rdbuf(&_buf);
+ return *this;
};
///Move assignment of a pipe.
basic_pstream& operator=(basic_pstream && lhs)
{
std::basic_istream<CharT, Traits>::operator=(std::move(lhs));
- _buf = std::move(lhs);
+ _buf = std::move(lhs._buf);
std::basic_iostream<CharT, Traits>::rdbuf(&_buf);
+ return *this;
};
///Move assignment of a pipe.
basic_pstream& operator=(pipe_type && p)