mirror of
https://github.com/boostorg/container.git
synced 2025-08-03 22:44:26 +02:00
Allocator concept requires copy assignment.
This commit is contained in:
@@ -121,8 +121,6 @@ class adaptive_pool
|
|||||||
adaptive_pool& operator=
|
adaptive_pool& operator=
|
||||||
(const adaptive_pool<T2, Version2, N2, F2>&);
|
(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
|
#endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@@ -113,9 +113,6 @@ class allocator
|
|||||||
template<class T2, unsigned int Version2, unsigned int AllocationDisableMask2>
|
template<class T2, unsigned int Version2, unsigned int AllocationDisableMask2>
|
||||||
allocator& operator=(const allocator<T2, Version2, AllocationDisableMask2>&);
|
allocator& operator=(const allocator<T2, Version2, AllocationDisableMask2>&);
|
||||||
|
|
||||||
//Not assignable from other allocator
|
|
||||||
allocator& operator=(const allocator&);
|
|
||||||
|
|
||||||
static const unsigned int ForbiddenMask =
|
static const unsigned int ForbiddenMask =
|
||||||
BOOST_CONTAINER_ALLOCATE_NEW | BOOST_CONTAINER_EXPAND_BWD | BOOST_CONTAINER_EXPAND_FWD ;
|
BOOST_CONTAINER_ALLOCATE_NEW | BOOST_CONTAINER_EXPAND_BWD | BOOST_CONTAINER_EXPAND_FWD ;
|
||||||
|
|
||||||
|
@@ -176,4 +176,4 @@ class new_allocator
|
|||||||
|
|
||||||
#include <boost/container/detail/config_end.hpp>
|
#include <boost/container/detail/config_end.hpp>
|
||||||
|
|
||||||
#endif //BOOST_CONTAINER_ALLOCATOR_HPP
|
#endif //BOOST_CONTAINER_NEW_ALLOCATOR_HPP
|
||||||
|
@@ -109,9 +109,6 @@ class node_allocator
|
|||||||
template<class T2, std::size_t N2>
|
template<class T2, std::size_t N2>
|
||||||
node_allocator& operator=
|
node_allocator& operator=
|
||||||
(const node_allocator<T2, N2>&);
|
(const node_allocator<T2, N2>&);
|
||||||
|
|
||||||
//!Not assignable from other node_allocator
|
|
||||||
node_allocator& operator=(const node_allocator&);
|
|
||||||
#endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
|
#endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Reference in New Issue
Block a user