Bug fixes

This commit is contained in:
IlyaShurupov 2023-10-16 00:02:32 +03:00 committed by Ilya Shurupov
parent 15b56a876a
commit b2fa4c4266
3 changed files with 20 additions and 27 deletions

View file

@ -193,8 +193,9 @@ namespace tp {
Buffer& operator=(const Buffer& in) {
if (this == &in) return *this;
clear();
return *this;
this->~Buffer();
new (this) Buffer(in);
return *this;
}
~Buffer() {
@ -405,4 +406,4 @@ namespace tp {
}
}
}
}