diff --git a/util/mmap.hh b/util/mmap.hh index cd35eff..a8f8f43 100644 --- a/util/mmap.hh +++ b/util/mmap.hh @@ -82,6 +82,14 @@ class scoped_memory { : data_(from.data_), size_(from.size_), source_(from.source_) { from.steal(); } + + scoped_memory &operator=(scoped_memory &&from) noexcept { + reset(); + size_ = from.size_; + source_ = from.source_; + data_ = from.steal(); + return *this; + } #endif ~scoped_memory() { reset(); } diff --git a/util/probing_hash_table.hh b/util/probing_hash_table.hh index c1965b4..eae3f78 100644 --- a/util/probing_hash_table.hh +++ b/util/probing_hash_table.hh @@ -393,10 +393,19 @@ template