aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/map.h
diff options
context:
space:
mode:
authorGravatar Tres Seaver <tseaver@palladion.com>2014-11-18 11:37:37 -0500
committerGravatar Tres Seaver <tseaver@palladion.com>2014-11-18 11:37:37 -0500
commit0fab06062f3be27a061e2062e113083ecefa5146 (patch)
treeb37761519a103db18f0acc406affecfafb7076d1 /src/google/protobuf/map.h
parent0eb74768d01f9a2d53b09e6bef3678d485e89aca (diff)
Fix 'error: a class-key must be used when declaring a friend' compile error.
Diffstat (limited to 'src/google/protobuf/map.h')
-rw-r--r--src/google/protobuf/map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/map.h b/src/google/protobuf/map.h
index f99c5a73..a9937b9b 100644
--- a/src/google/protobuf/map.h
+++ b/src/google/protobuf/map.h
@@ -119,7 +119,7 @@ class MapIterator {
private:
typename hash_map<Key, value_type*>::iterator it_;
- friend Map<Key, T>;
+ friend class Map<Key, T>;
};
// google::protobuf::Map is an associative container type used to store protobuf map