+2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
+
+ * hash-map.h (hash_map::traverse): Use the definition of the
+ Key typedef rather than the typedef itself.
+
2015-06-26 Martin Jambor <mjambor@suse.cz>
PR debug/66301
/* Call the call back on each pair of key and value with the passed in
arg. */
- template<typename Arg, bool (*f)(const Key &, const Value &, Arg)>
+ template<typename Arg, bool (*f)(const typename Traits::key_type &,
+ const Value &, Arg)>
void traverse (Arg a) const
{
for (typename hash_table<hash_entry>::iterator iter = m_table.begin ();
f ((*iter).m_key, (*iter).m_value, a);
}
- template<typename Arg, bool (*f)(const Key &, Value *, Arg)>
+ template<typename Arg, bool (*f)(const typename Traits::key_type &,
+ Value *, Arg)>
void traverse (Arg a) const
{
for (typename hash_table<hash_entry>::iterator iter = m_table.begin ();