Fixes #133 ("basic_string move constructor with allocator argument has incorrect allocator check")

This commit is contained in:
Ion Gaztañaga committed 2019-11-14 15:25:22 +01:00
1 parent 1cf19898c0
commit 79ae525967
2 files changed
+2 -2

No files matched your search

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