Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
c80f7c6f
Commit
c80f7c6f
authored
Aug 26, 2015
by
Feng Xiao
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #742 from xfxyjwf/c11_compile
Fix compile issues with -std=c++11
parents
f9237d2b
d9ab86cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
map_test.cc
src/google/protobuf/map_test.cc
+1
-1
map_unittest.proto
src/google/protobuf/map_unittest.proto
+2
-2
No files found.
src/google/protobuf/map_test.cc
View file @
c80f7c6f
...
...
@@ -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
<
Message
>
to
(
factory_
.
GetPrototype
(
recursive_map_descriptor_
)
->
New
());
...
...
src/google/protobuf/map_unittest.proto
View file @
c80f7c6f
...
...
@@ -116,7 +116,7 @@ message MessageContainingEnumCalledType {
enum
Type
{
TYPE_FOO
=
0
;
}
map
<
int32
,
MessageContainingEnumCalledType
>
type
=
1
;
map
<
string
,
MessageContainingEnumCalledType
>
type
=
1
;
}
// Previously, message cannot contain map field called "entry".
...
...
@@ -125,5 +125,5 @@ message MessageContainingMapCalledEntry {
}
message
TestRecursiveMapMessage
{
map
<
int32
,
TestRecursiveMapMessage
>
a
=
1
;
map
<
string
,
TestRecursiveMapMessage
>
a
=
1
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment