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
0eaae1e6
Commit
0eaae1e6
authored
Dec 04, 2014
by
Feng Xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace is_enum with is_proto_enum because is_enum is not supported on some platforms.
parent
6936f17b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
repeated_field_reflection.h
src/google/protobuf/repeated_field_reflection.h
+3
-1
No files found.
src/google/protobuf/repeated_field_reflection.h
View file @
0eaae1e6
...
...
@@ -38,6 +38,8 @@
#include <google/protobuf/stubs/shared_ptr.h>
#endif
#include <google/protobuf/generated_enum_reflection.h>
namespace
google
{
namespace
protobuf
{
namespace
internal
{
...
...
@@ -273,7 +275,7 @@ struct RefTypeTraits<
template
<
typename
T
>
struct
RefTypeTraits
<
T
,
typename
internal
::
enable_if
<
i
nternal
::
is
_enum
<
T
>::
value
>::
type
>
{
T
,
typename
internal
::
enable_if
<
i
s_proto
_enum
<
T
>::
value
>::
type
>
{
typedef
RepeatedFieldRefIterator
<
T
>
iterator
;
typedef
RepeatedFieldAccessor
AccessorType
;
// We use int32 for repeated enums in RepeatedFieldAccessor.
...
...
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