Commit 86e01104 by Richard Biener Committed by Richard Biener

hash-map.h (hash_map::iterator::operator*): Return references to key and value.

2018-07-10  Richard Biener  <rguenther@suse.de>

	* hash-map.h (hash_map::iterator::operator*): Return
	references to key and value.

From-SVN: r262539
parent f1bc6cae
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
......
......@@ -223,10 +223,10 @@ public:
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment