|
|
@ -38,6 +38,8 @@ |
|
|
|
#include <google/protobuf/stubs/shared_ptr.h> |
|
|
|
#include <google/protobuf/stubs/shared_ptr.h> |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <google/protobuf/generated_enum_reflection.h> |
|
|
|
|
|
|
|
|
|
|
|
namespace google { |
|
|
|
namespace google { |
|
|
|
namespace protobuf { |
|
|
|
namespace protobuf { |
|
|
|
namespace internal { |
|
|
|
namespace internal { |
|
|
@ -273,7 +275,7 @@ struct RefTypeTraits< |
|
|
|
|
|
|
|
|
|
|
|
template<typename T> |
|
|
|
template<typename T> |
|
|
|
struct RefTypeTraits< |
|
|
|
struct RefTypeTraits< |
|
|
|
T, typename internal::enable_if<internal::is_enum<T>::value>::type> { |
|
|
|
T, typename internal::enable_if<is_proto_enum<T>::value>::type> { |
|
|
|
typedef RepeatedFieldRefIterator<T> iterator; |
|
|
|
typedef RepeatedFieldRefIterator<T> iterator; |
|
|
|
typedef RepeatedFieldAccessor AccessorType; |
|
|
|
typedef RepeatedFieldAccessor AccessorType; |
|
|
|
// We use int32 for repeated enums in RepeatedFieldAccessor.
|
|
|
|
// We use int32 for repeated enums in RepeatedFieldAccessor.
|
|
|
|