mirror of
https://github.com/boostorg/container.git
synced 2025-08-03 22:44:26 +02:00
Fixes #133 ("basic_string move constructor with allocator argument has incorrect allocator check")
This commit is contained in:
@@ -1323,7 +1323,7 @@ use [*Boost.Container]? There are several reasons for that:
|
|||||||
|
|
||||||
* Fixed bugs:
|
* Fixed bugs:
|
||||||
* [@https://github.com/boostorg/container/issues/132 GitHub #132: ['"flat_map::lower_bound and upper_bound have wrong/misleading docs"]].
|
* [@https://github.com/boostorg/container/issues/132 GitHub #132: ['"flat_map::lower_bound and upper_bound have wrong/misleading docs"]].
|
||||||
|
* [@https://github.com/boostorg/container/issues/133 GitHub #133: ['"basic_string move constructor with allocator argument has incorrect allocator check"]].
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
|
||||||
|
@@ -712,7 +712,7 @@ class basic_string
|
|||||||
: base_t(a)
|
: base_t(a)
|
||||||
{
|
{
|
||||||
this->priv_terminate_string();
|
this->priv_terminate_string();
|
||||||
if(a == this->alloc()){
|
if(s.alloc() == this->alloc()){
|
||||||
this->swap_data(s);
|
this->swap_data(s);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
Reference in New Issue
Block a user