fix: attempting to reference a deleted function

This commit is contained in:
mutouyun 2019-10-07 11:51:37 +00:00
parent 448a4883f6
commit f3eb6ba55a

View File

@ -51,31 +51,15 @@ private:
public: public:
allocator_wrapper() noexcept {} allocator_wrapper() noexcept {}
allocator_wrapper(const allocator_wrapper<T, AllocP>& rhs) noexcept // no copy
: alloc_(rhs.alloc_) allocator_wrapper(const allocator_wrapper<T, AllocP>& rhs) noexcept {}
{}
template <typename U> template <typename U>
allocator_wrapper(const allocator_wrapper<U, AllocP>& rhs) noexcept allocator_wrapper(const allocator_wrapper<U, AllocP>& rhs) noexcept {}
: alloc_(rhs.alloc_)
{}
allocator_wrapper(allocator_wrapper<T, AllocP>&& rhs) noexcept
: alloc_(std::move(rhs.alloc_))
{}
allocator_wrapper(allocator_wrapper<T, AllocP> && rhs) noexcept : alloc_(std::move(rhs.alloc_)) {}
template <typename U> template <typename U>
allocator_wrapper(allocator_wrapper<U, AllocP>&& rhs) noexcept allocator_wrapper(allocator_wrapper<U, AllocP> && rhs) noexcept : alloc_(std::move(rhs.alloc_)) {}
: alloc_(std::move(rhs.alloc_)) allocator_wrapper(alloc_policy && rhs) noexcept : alloc_(std::move(rhs)) {}
{}
allocator_wrapper(const AllocP& rhs) noexcept
: alloc_(rhs)
{}
allocator_wrapper(AllocP&& rhs) noexcept
: alloc_(std::move(rhs))
{}
public: public:
// the other type of std_allocator // the other type of std_allocator