diff --git a/STL_Extension/include/CGAL/Small_unordered_set.h b/STL_Extension/include/CGAL/Small_unordered_set.h index 86b2f524df4..ba6528b4928 100644 --- a/STL_Extension/include/CGAL/Small_unordered_set.h +++ b/STL_Extension/include/CGAL/Small_unordered_set.h @@ -98,8 +98,8 @@ public: { if (m_size != MaxSize) { - for (const Key& a : m_array) - if (a == key) + for (std::size_t i = 0; i < m_size; ++ i) + if (m_array[i] == key) return false; m_array[m_size ++] = key; return true;