mirror of
https://github.com/boostorg/container.git
synced 2025-08-03 14:34:27 +02:00
Fix comment about self-assignment
This commit is contained in:
@@ -2407,7 +2407,7 @@ class vector
|
|||||||
, container_detail::is_different<OtherAllocator, allocator_type>
|
, container_detail::is_different<OtherAllocator, allocator_type>
|
||||||
>::type * = 0)
|
>::type * = 0)
|
||||||
{
|
{
|
||||||
//for move constructor, no aliasing (&x != this) is assummed.
|
//for move assignment, no aliasing (&x != this) is assummed.
|
||||||
BOOST_ASSERT(this != &x);
|
BOOST_ASSERT(this != &x);
|
||||||
allocator_type &this_alloc = this->m_holder.alloc();
|
allocator_type &this_alloc = this->m_holder.alloc();
|
||||||
allocator_type &x_alloc = x.m_holder.alloc();
|
allocator_type &x_alloc = x.m_holder.alloc();
|
||||||
|
Reference in New Issue
Block a user