Skip to content

Commit

Permalink
[Base] Make MappedMemory non-copyable
Browse files Browse the repository at this point in the history
  • Loading branch information
Triang3l committed Jul 14, 2022
1 parent 2a69d1d commit 9fd6351
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xenia/base/mapped_memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ class MappedMemory {
MappedMemory(const std::filesystem::path& path, Mode mode, void* data,
size_t size)
: path_(path), mode_(mode), data_(data), size_(size) {}
MappedMemory(const MappedMemory& mapped_memory) = delete;
MappedMemory& operator=(const MappedMemory& mapped_memory) = delete;
MappedMemory(MappedMemory&& mapped_memory) = delete;
MappedMemory& operator=(MappedMemory&& mapped_memory) = delete;
virtual ~MappedMemory() = default;

std::unique_ptr<MappedMemory> Slice(Mode mode, size_t offset, size_t length) {
Expand Down

0 comments on commit 9fd6351

Please sign in to comment.