diff options
| -rw-r--r-- | src/io.hh | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -8,16 +8,17 @@ namespace io { class pipe { public: pipe(); - pipe(pipe&& pipe); + pipe(pipe&& other); ~pipe(); - pipe& operator=(pipe&& pipe) { + pipe& operator=(pipe&& other) { reset(); - swap(pipe); + swap(other); return *this; } bool open(); + explicit operator bool() const { return read() != -1; } |
