MemPool: Fix typo in copy and assignment methods

https://github.com/cacay/MemoryPool/pull/8
This commit is contained in:
CalciteM Team 2019-08-01 23:20:17 +08:00
parent 3e5c856d86
commit 514af95f6c
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ noexcept
memoryPool.currentBlock_ = nullptr;
currentSlot_ = memoryPool.currentSlot_;
lastSlot_ = memoryPool.lastSlot_;
freeSlots_ = memoryPool.freeSlots;
freeSlots_ = memoryPool.freeSlots_;
}
@ -87,7 +87,7 @@ noexcept
std::swap(currentBlock_, memoryPool.currentBlock_);
currentSlot_ = memoryPool.currentSlot_;
lastSlot_ = memoryPool.lastSlot_;
freeSlots_ = memoryPool.freeSlots;
freeSlots_ = memoryPool.freeSlots_;
}
return *this;
}