Bug fixes
This commit is contained in:
parent
15b56a876a
commit
b2fa4c4266
3 changed files with 20 additions and 27 deletions
|
|
@ -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 {
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue