Corrected a bug where buffers were not properly counted when copy constructed
This commit is contained in:
parent
7a70fac564
commit
2cb11c8be7
1 changed files with 1 additions and 0 deletions
|
|
@ -186,6 +186,7 @@ public:
|
|||
*/
|
||||
Buffer(const Buffer<Type>& other)
|
||||
{
|
||||
counter().newBuffer(0);
|
||||
if (resize(other.size())) {
|
||||
std::memcpy(this->data(), other.data(), other.size() * sizeof(value_type));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue