From 3a5fac10daeb3b93f9026095c658b55c399f28a6 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Thu, 18 Feb 2016 22:19:09 -0500 Subject: Clean up deleted copy and move constructors for File --- src/posix_extras.h | 6 ++++-- 1 file 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_; -- cgit v1.2.3