Commit 5265e7ba by Richard Sandiford Committed by Richard Sandiford

hash-map.h (hash_map::traverse): Use the definition of the Key typedef rather…

hash-map.h (hash_map::traverse): Use the definition of the Key typedef rather than the typedef itself.

gcc/
	* hash-map.h (hash_map::traverse): Use the definition of the
	Key typedef rather than the typedef itself.

From-SVN: r225021
parent 1218f76f
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
......
......@@ -169,7 +169,8 @@ public:
/* 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 ();
......@@ -177,7 +178,8 @@ public:
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 ();
......
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