From d9ab86cdbf87915319020241de65b821be068db7 Mon Sep 17 00:00:00 2001 From: Feng Xiao Date: Tue, 25 Aug 2015 22:20:47 -0700 Subject: Fix compile issues with -std=c++11 This compiles with -std=c++11: message Foo { map value = 1; } This does not compile: message Foo { map value = 1; } Needs to dig more into the underlying issue. --- src/google/protobuf/map_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/google/protobuf/map_test.cc') diff --git a/src/google/protobuf/map_test.cc b/src/google/protobuf/map_test.cc index a74801d9..16a24c25 100644 --- a/src/google/protobuf/map_test.cc +++ b/src/google/protobuf/map_test.cc @@ -2188,7 +2188,7 @@ TEST_F(MapFieldInDynamicMessageTest, MapSpaceUsed) { TEST_F(MapFieldInDynamicMessageTest, RecursiveMap) { TestRecursiveMapMessage from; - (*from.mutable_a())[0]; + (*from.mutable_a())[""]; string data = from.SerializeAsString(); google::protobuf::scoped_ptr to( factory_.GetPrototype(recursive_map_descriptor_)->New()); -- cgit v1.2.3