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:
Richard Hodges committed 2020-02-04 18:36:53 +01:00
1 parent 6d10adf936
commit 7701bf8738
6 files changed
+9 -18

No files matched your search

-2
View File
@@ -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
{