Fixing memory leak

This commit is contained in:
2023-11-30 14:11:04 +01:00
parent 1493627ceb
commit 93cb88df26
+2 -1
View File
@@ -213,6 +213,7 @@ public:
}
constexpr ~Map() noexcept
{
clear();
}
constexpr Map& operator=(const Map& other)
{
@@ -426,7 +427,7 @@ private:
void verifyTree()
{
size_t numElems = 0;
for (const auto& [_, _] : *this)
for (const auto& it : *this)
{
numElems++;
}