fix compilation error

This commit is contained in:
mutouyun 2019-10-31 23:34:00 +08:00
parent 4f46e5a95f
commit 792a9b3339

View File

@ -61,6 +61,11 @@ public:
allocator_wrapper(allocator_wrapper<U, AllocP> && 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 <typename U>