Fix 'error: a class-key must be used when declaring a friend' compile error.

This commit is contained in:
Tres Seaver 2014-11-18 11:37:37 -05:00
parent 0eb74768d0
commit 0fab06062f

View file

@ -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