Commit f0e8df3b authored by Jisi Liu's avatar Jisi Liu

use is_proto_enum instead of is_enum for repeated accessor field.

The later is not supported by some versions of MSVC and the former is
more accurate for the use case.

Change-Id: I7096226b1ebfef8340d288bbaf2788540aa3e97f
parent 4065a316
......@@ -536,7 +536,7 @@ struct RefTypeTraits<
template<typename T>
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 RepeatedFieldAccessor AccessorType;
// We use int32 for repeated enums in RepeatedFieldAccessor.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment