summaryrefslogtreecommitdiff
path: root/src/io.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/io.hh')
-rw-r--r--src/io.hh7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/io.hh b/src/io.hh
index abd91fa..c39fa2e 100644
--- a/src/io.hh
+++ b/src/io.hh
@@ -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;
}