diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2017-09-27 19:54:18 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2017-09-27 19:54:18 +0200 |
| commit | 9c60823871c50f5aad93ad73c4b16a0985fb4918 (patch) | |
| tree | 85b625bc25b30054472bd5204964ec25ff5e4504 | |
| parent | 36ab6defac59d289a513e74c28e21f437adead98 (diff) | |
Some really minor cleanups of io.hh
| -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; } |
