2018-07-10 Richard Biener <rguenther@suse.de>
* hash-map.h (hash_map::iterator::operator*): Return
references to key and value.
From-SVN: r262539
+2018-07-10 Richard Biener <rguenther@suse.de>
+
+ * hash-map.h (hash_map::iterator::operator*): Return
+ references to key and value.
+
2018-07-10 Jakub Jelinek <jakub@redhat.com>
PR c++/86443
return *this;
}
- std::pair<Key, Value> operator* ()
+ std::pair<const Key&, Value&> operator* ()
{
hash_entry &e = *m_iter;
- return std::pair<Key, Value> (e.m_key, e.m_value);
+ return std::pair<const Key&, Value&> (e.m_key, e.m_value);
}
bool