diff --git a/src/memory/allocator_wrapper.h b/src/memory/allocator_wrapper.h index 9f392ae..d31b815 100755 --- a/src/memory/allocator_wrapper.h +++ b/src/memory/allocator_wrapper.h @@ -51,31 +51,15 @@ private: public: allocator_wrapper() noexcept {} - allocator_wrapper(const allocator_wrapper& rhs) noexcept - : alloc_(rhs.alloc_) - {} - + // no copy + allocator_wrapper(const allocator_wrapper& rhs) noexcept {} template - allocator_wrapper(const allocator_wrapper& rhs) noexcept - : alloc_(rhs.alloc_) - {} - - allocator_wrapper(allocator_wrapper&& rhs) noexcept - : alloc_(std::move(rhs.alloc_)) - {} + allocator_wrapper(const allocator_wrapper& rhs) noexcept {} + allocator_wrapper(allocator_wrapper && rhs) noexcept : alloc_(std::move(rhs.alloc_)) {} template - allocator_wrapper(allocator_wrapper&& rhs) noexcept - : alloc_(std::move(rhs.alloc_)) - {} - - allocator_wrapper(const AllocP& rhs) noexcept - : alloc_(rhs) - {} - - allocator_wrapper(AllocP&& rhs) noexcept - : alloc_(std::move(rhs)) - {} + allocator_wrapper(allocator_wrapper && rhs) noexcept : alloc_(std::move(rhs.alloc_)) {} + allocator_wrapper(alloc_policy && rhs) noexcept : alloc_(std::move(rhs)) {} public: // the other type of std_allocator