Commit db90dff8 authored by Feng Xiao's avatar Feng Xiao

Merge pull request #88 from tseaver/fix-class_key_must_be_declared_w_friend

Fix compiler error: "a class-key must be used when declaring a friend"
parents e4f063f2 4113685c
...@@ -119,7 +119,7 @@ class MapIterator { ...@@ -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
......
...@@ -85,7 +85,7 @@ class MapImplTest : public ::testing::Test { ...@@ -85,7 +85,7 @@ class MapImplTest : public ::testing::Test {
EXPECT_TRUE(map_.empty()); EXPECT_TRUE(map_.empty());
EXPECT_EQ(0, map_.size()); EXPECT_EQ(0, map_.size());
} }
~MapImplTest() override {} ~MapImplTest() {}
void ExpectSingleElement(int32 key, int32 value) { void ExpectSingleElement(int32 key, int32 value) {
EXPECT_FALSE(map_.empty()); EXPECT_FALSE(map_.empty());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment