Fix compiler error: "a class-key must be used when declaring a friend"
@@ -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
@@ -85,7 +85,7 @@ class MapImplTest : public ::testing::Test {
EXPECT_TRUE(map_.empty());
EXPECT_EQ(0, map_.size());
}
- ~MapImplTest() override {}
+ ~MapImplTest() {}
void ExpectSingleElement(int32 key, int32 value) {
EXPECT_FALSE(map_.empty());