Fixed error with repr swap

[SVN r83468]
This commit is contained in:
Ion Gaztañaga
2013-03-16 19:30:19 +00:00
parent f1a4d7f82e
commit 6c13bd4918

View File

@@ -426,7 +426,7 @@ class basic_string_base
{ {
if(this->is_short()){ if(this->is_short()){
if(other.is_short()){ if(other.is_short()){
boost::container::swap_dispatch(this->members_.m_repr, other.members_.m_repr); std::swap(this->members_.m_repr, other.members_.m_repr);
} }
else{ else{
short_t short_backup(this->members_.m_repr.short_repr()); short_t short_backup(this->members_.m_repr.short_repr());