summaryrefslogtreecommitdiffstats
path: root/include/ScopedFd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ScopedFd.h')
-rw-r--r--include/ScopedFd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ScopedFd.h b/include/ScopedFd.h
index 30feabd..d2b7935 100644
--- a/include/ScopedFd.h
+++ b/include/ScopedFd.h
@@ -37,6 +37,10 @@ public:
private:
int fd;
+
+ // Disallow copy and assignment.
+ ScopedFd(const ScopedFd&);
+ void operator=(const ScopedFd&);
};
#endif // SCOPED_FD_H_included