summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordeanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-11 12:24:57 +0000
committerdeanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-11 12:24:57 +0000
commitce91a9496d699ded169f5d0da220cf24c617878d (patch)
treeabd1f09e2755548a01cf280bef79a33b407ecc26
parent516b91d9dff7b8198b4b245586803f4ff62dfd76 (diff)
downloadchromium_src-ce91a9496d699ded169f5d0da220cf24c617878d.zip
chromium_src-ce91a9496d699ded169f5d0da220cf24c617878d.tar.gz
chromium_src-ce91a9496d699ded169f5d0da220cf24c617878d.tar.bz2
HashTable is a dependent name, since it's based on the template parameter T. Use typename for derived types, this will now build on GCC.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@643 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--base/id_map.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/id_map.h b/base/id_map.h
index 7335b02..140d025 100644
--- a/base/id_map.h
+++ b/base/id_map.h
@@ -83,7 +83,7 @@ class IDMap {
}
void Remove(int32 id) {
- HashTable::iterator i = data_.find(id);
+ typename HashTable::iterator i = data_.find(id);
if (i == data_.end()) {
NOTREACHED() << "Attempting to remove an item not in the list";
return;
@@ -96,7 +96,7 @@ class IDMap {
}
T* Lookup(int32 id) const {
- HashTable::const_iterator i = data_.find(id);
+ typename HashTable::const_iterator i = data_.find(id);
if (i == data_.end())
return NULL;
return i->second;