improved constructor

This commit is contained in:
Bob Polis 2020-02-15 16:37:46 +01:00
parent 260fba5ef7
commit 4db3e6995c

View File

@ -30,9 +30,7 @@ namespace sc {
class fdostream : public std::ostream { class fdostream : public std::ostream {
public: public:
fdostream(int fd) : std::ostream(nullptr), _buf(fd) { fdostream(int fd) : std::ostream(&_buf), _buf(fd) {}
rdbuf(&_buf);
}
private: private:
fdoutbuf _buf; fdoutbuf _buf;