From a6c061497913ad3e1e01a32098b2f97801a03003 Mon Sep 17 00:00:00 2001 From: William JCM Date: Fri, 11 Feb 2022 19:44:16 +0100 Subject: [PATCH] BinaryWriter: make non-copyable. --- src/UESaveFile/BinaryWriter.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/UESaveFile/BinaryWriter.h b/src/UESaveFile/BinaryWriter.h index 299f40c..0d7a726 100644 --- a/src/UESaveFile/BinaryWriter.h +++ b/src/UESaveFile/BinaryWriter.h @@ -33,6 +33,12 @@ class BinaryWriter { explicit BinaryWriter(const std::string& filename); ~BinaryWriter(); + BinaryWriter(const BinaryWriter& other) = delete; + BinaryWriter& operator=(const BinaryWriter& other) = delete; + + BinaryWriter(BinaryWriter&& other) = default; + BinaryWriter& operator=(BinaryWriter&& other) = default; + auto open() -> bool; void closeFile();