Skip to content

Commit 605a8f0

Browse files
committed
Fix typo in copy and assignment methods
1 parent 1ab4683 commit 605a8f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: C-11/MemoryPool.tcc

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ noexcept
6464
memoryPool.currentBlock_ = nullptr;
6565
currentSlot_ = memoryPool.currentSlot_;
6666
lastSlot_ = memoryPool.lastSlot_;
67-
freeSlots_ = memoryPool.freeSlots;
67+
freeSlots_ = memoryPool.freeSlots_;
6868
}
6969

7070

@@ -87,7 +87,7 @@ noexcept
8787
std::swap(currentBlock_, memoryPool.currentBlock_);
8888
currentSlot_ = memoryPool.currentSlot_;
8989
lastSlot_ = memoryPool.lastSlot_;
90-
freeSlots_ = memoryPool.freeSlots;
90+
freeSlots_ = memoryPool.freeSlots_;
9191
}
9292
return *this;
9393
}

0 commit comments

Comments
 (0)