Quellcode durchsuchen

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

Tres Seaver vor 11 Jahren
Ursprung
Commit
0fab06062f
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/google/protobuf/map.h

+ 1 - 1
src/google/protobuf/map.h

@@ -119,7 +119,7 @@ class MapIterator {
  private:
  private:
   typename hash_map<Key, value_type*>::iterator it_;
   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
 // google::protobuf::Map is an associative container type used to store protobuf map