diff options
author | Benjamin Barenblat <bbaren@mit.edu> | 2016-02-18 22:19:09 -0500 |
---|---|---|
committer | Benjamin Barenblat <bbaren@mit.edu> | 2016-02-18 22:19:09 -0500 |
commit | 3a5fac10daeb3b93f9026095c658b55c399f28a6 (patch) | |
tree | 7f807289a5903bffd8f0f12b81535d275d80e56d | |
parent | d0f5817f4720b49ffaee9fa9593b2f11446963a0 (diff) |
Clean up deleted copy and move constructors for File
-rw-r--r-- | src/posix_extras.h | 6 |
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_; |