diff options
author | Lioncash <mathew1800@gmail.com> | 2021-05-28 01:49:38 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-05-28 01:49:40 -0400 |
commit | 210c2c9a560565d644384ddb99098822600ceb7a (patch) | |
tree | 71a3257a2296716cbef125e6b740092436c47411 /src/common/fs/file.h | |
parent | 6806a893bd148bc376e415643205ee29dedeaed5 (diff) |
common/fs/file: Explicitly delete copy constructors
Relocates them to the same place the move equivalents are at for
consistent viewing.
Diffstat (limited to 'src/common/fs/file.h')
-rw-r--r-- | src/common/fs/file.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 <typename Path> } #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; |