X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/3abd3952c1f4441f0dd6eae9883b2d01ed9cd56b..03b35a9a1bd1f583e32b27d260b223a0989d6c75:/rpc/file.h?ds=inline diff --git a/rpc/file.h b/rpc/file.h index 75c0d6e..9ea313f 100644 --- a/rpc/file.h +++ b/rpc/file.h @@ -31,7 +31,7 @@ class file_t { ends[1].fd_ = fds[1]; } inline operator int() const { if (fd_ == -1) throw "no fd"; return fd_; } - inline flags_t flags() const { return *this; } + inline flags_t flags() const { return {*this}; } inline void close() { ::close(fd_); fd_ = -1;