diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-06-26 16:50:19 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-06-26 16:50:19 +0000 |
commit | 5265e7ba854d41eb46b353de7e011043f882dae6 (patch) | |
tree | f426c28505b01f663bce8b306854f819549bd41e /gcc/hash-map.h | |
parent | 1218f76f22135757dee9f062fdec04b57b3ce6bb (diff) | |
download | gcc-5265e7ba854d41eb46b353de7e011043f882dae6.zip gcc-5265e7ba854d41eb46b353de7e011043f882dae6.tar.gz gcc-5265e7ba854d41eb46b353de7e011043f882dae6.tar.bz2 |
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
Diffstat (limited to 'gcc/hash-map.h')
-rw-r--r-- | gcc/hash-map.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/hash-map.h b/gcc/hash-map.h index cd97d35..59794eb 100644 --- a/gcc/hash-map.h +++ b/gcc/hash-map.h @@ -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 (); |