From 210c2c9a560565d644384ddb99098822600ceb7a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 28 May 2021 01:49:38 -0400 Subject: common/fs/file: Explicitly delete copy constructors Relocates them to the same place the move equivalents are at for consistent viewing. --- src/common/fs/file.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/common/fs/file.h') diff --git a/src/common/fs/file.h b/src/common/fs/file.h index 33a8b9d2f..50e270c5b 100644 --- a/src/common/fs/file.h +++ b/src/common/fs/file.h @@ -117,7 +117,7 @@ template } #endif -class IOFile final : NonCopyable { +class IOFile final { public: IOFile(); @@ -144,6 +144,9 @@ public: ~IOFile(); + IOFile(const IOFile&) = delete; + IOFile& operator=(const IOFile&) = delete; + IOFile(IOFile&& other) noexcept; IOFile& operator=(IOFile&& other) noexcept; -- cgit v1.2.3