From 0eaae1e6ce8767a10de49fb130f9e7f066210d7b Mon Sep 17 00:00:00 2001 From: Feng Xiao Date: Wed, 3 Dec 2014 18:15:19 -0800 Subject: [PATCH] Replace is_enum with is_proto_enum because is_enum is not supported on some platforms. --- src/google/protobuf/repeated_field_reflection.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/google/protobuf/repeated_field_reflection.h b/src/google/protobuf/repeated_field_reflection.h index 42f7be20f3..44d14d5b3c 100644 --- a/src/google/protobuf/repeated_field_reflection.h +++ b/src/google/protobuf/repeated_field_reflection.h @@ -38,6 +38,8 @@ #include #endif +#include + namespace google { namespace protobuf { namespace internal { @@ -273,7 +275,7 @@ struct RefTypeTraits< template struct RefTypeTraits< - T, typename internal::enable_if::value>::type> { + T, typename internal::enable_if::value>::type> { typedef RepeatedFieldRefIterator iterator; typedef RepeatedFieldAccessor AccessorType; // We use int32 for repeated enums in RepeatedFieldAccessor.