forked from boostorg/container
Fixes #133 ("basic_string move constructor with allocator argument has incorrect allocator check")
This commit is contained in:
@@ -712,7 +712,7 @@ class basic_string
|
||||
: base_t(a)
|
||||
{
|
||||
this->priv_terminate_string();
|
||||
if(a == this->alloc()){
|
||||
if(s.alloc() == this->alloc()){
|
||||
this->swap_data(s);
|
||||
}
|
||||
else{
|
||||
|
||||
Reference in New Issue
Block a user