forked from boostorg/beast
moved-from container with unequal allocator will not be modified:
Affects: - flat_buffer - multi_buffer - http::fields fixes #1832 closes #1834
This commit is contained in:
6 files changed
+9
-18
No files matched your search
@@ -382,7 +382,6 @@ basic_fields(basic_fields&& other, Allocator const& alloc)
|
||||
if(this->get() != other.get())
|
||||
{
|
||||
copy_all(other);
|
||||
other.clear_all();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1139,7 +1138,6 @@ move_assign(basic_fields& other, std::false_type)
|
||||
if(this->get() != other.get())
|
||||
{
|
||||
copy_all(other);
|
||||
other.clear_all();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user