Skip to content

Commit 4c3126e

Browse files
committed
Fix unused variable warning in Unique_hash_map
1 parent 8b652fd commit 4c3126e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Hash_map/include/CGAL/Unique_hash_map.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ class Unique_hash_map {
124124
}
125125

126126
Data& operator[](const Key& key) {
127-
auto [it, inserted] = m_map.try_emplace(m_hash_function(key), m_default_value);
128-
return it->second;
127+
return m_map.try_emplace(
128+
m_hash_function(key), m_default_value).first->second;
129129
}
130130

131131
Data insert( Key first1, Key beyond1, Data first2) {

0 commit comments

Comments
 (0)