Allocator concept requires copy assignment.

This commit is contained in:
Ion Gaztañaga
2016-08-29 00:05:50 +02:00
parent b6dbb1cb09
commit 6ccf9dacae
4 changed files with 1 additions and 9 deletions

View File

@@ -121,8 +121,6 @@ class adaptive_pool
adaptive_pool& operator=
(const adaptive_pool<T2, Version2, N2, F2>&);
//!Not assignable from other adaptive_pool
adaptive_pool& operator=(const adaptive_pool&);
#endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
public:

View File

@@ -113,9 +113,6 @@ class allocator
template<class T2, unsigned int Version2, unsigned int AllocationDisableMask2>
allocator& operator=(const allocator<T2, Version2, AllocationDisableMask2>&);
//Not assignable from other allocator
allocator& operator=(const allocator&);
static const unsigned int ForbiddenMask =
BOOST_CONTAINER_ALLOCATE_NEW | BOOST_CONTAINER_EXPAND_BWD | BOOST_CONTAINER_EXPAND_FWD ;

View File

@@ -176,4 +176,4 @@ class new_allocator
#include <boost/container/detail/config_end.hpp>
#endif //BOOST_CONTAINER_ALLOCATOR_HPP
#endif //BOOST_CONTAINER_NEW_ALLOCATOR_HPP

View File

@@ -109,9 +109,6 @@ class node_allocator
template<class T2, std::size_t N2>
node_allocator& operator=
(const node_allocator<T2, N2>&);
//!Not assignable from other node_allocator
node_allocator& operator=(const node_allocator&);
#endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
public: