From 0fab06062f3be27a061e2062e113083ecefa5146 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Tue, 18 Nov 2014 11:37:37 -0500 Subject: Fix 'error: a class-key must be used when declaring a friend' compile error. --- src/google/protobuf/map.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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::iterator it_; - friend Map; + friend class Map; }; // google::protobuf::Map is an associative container type used to store protobuf map -- cgit v1.2.3