BinaryWriter: make non-copyable.

This commit is contained in:
Guillaume Jacquemin 2022-02-11 19:44:16 +01:00
parent 2cabe6a3ba
commit a6c0614979

View file

@ -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();