aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@mit.edu>2016-02-18 22:19:09 -0500
committerGravatar Benjamin Barenblat <bbaren@mit.edu>2016-02-18 22:19:09 -0500
commit3a5fac10daeb3b93f9026095c658b55c399f28a6 (patch)
tree7f807289a5903bffd8f0f12b81535d275d80e56d
parentd0f5817f4720b49ffaee9fa9593b2f11446963a0 (diff)
Clean up deleted copy and move constructors for File
-rw-r--r--src/posix_extras.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/posix_extras.h b/src/posix_extras.h
index 001968f..823357c 100644
--- a/src/posix_extras.h
+++ b/src/posix_extras.h
@@ -58,9 +58,11 @@ class File {
struct stat LinkStatAt(const char* path) const;
private:
- File(File&) = delete;
+ File(const File&) = delete;
+ File(File&&) = delete;
- void operator=(File) = delete;
+ void operator=(const File&) = delete;
+ void operator=(File&&) = delete;
std::string path_;
int fd_;