From 605a8f08aa1f35bdac36e4a072366df3540bd1ea Mon Sep 17 00:00:00 2001 From: Bineesh Lazar Date: Sun, 2 Jun 2019 12:16:48 +0530 Subject: [PATCH] Fix typo in copy and assignment methods --- C-11/MemoryPool.tcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C-11/MemoryPool.tcc b/C-11/MemoryPool.tcc index 562d958..4f7f99d 100644 --- a/C-11/MemoryPool.tcc +++ b/C-11/MemoryPool.tcc @@ -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; }