Bug fixes
This commit is contained in:
parent
94d47ba390
commit
97525efacb
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() {
|
||||
|
|
@ -406,4 +407,4 @@ namespace tp {
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue