From 792a9b3339ff1de9a9e84163db0b61075c1161f0 Mon Sep 17 00:00:00 2001 From: mutouyun Date: Thu, 31 Oct 2019 23:34:00 +0800 Subject: [PATCH] fix compilation error --- src/memory/allocator_wrapper.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/memory/allocator_wrapper.h b/src/memory/allocator_wrapper.h index ebf87eb..8b066ba 100755 --- a/src/memory/allocator_wrapper.h +++ b/src/memory/allocator_wrapper.h @@ -61,6 +61,11 @@ public: allocator_wrapper(allocator_wrapper && rhs) noexcept : alloc_(std::move(rhs.alloc_)) {} allocator_wrapper(alloc_policy && rhs) noexcept : alloc_(std::move(rhs)) {} + allocator_wrapper& operator=(allocator_wrapper && rhs) noexcept { + alloc_ = std::move(rhs.alloc_); + return *this; + } + public: // the other type of std_allocator template