Fixes compile on GCC 3.2 according to Sergey Tihansky.

pull/3335/head
kenton@google.com 15 years ago
parent 7db148f92a
commit c25f833baf
  1. 2
      src/google/protobuf/repeated_field.h

@ -675,7 +675,7 @@ template <typename TypeHandler>
inline void RepeatedPtrFieldBase::MergeFrom(const RepeatedPtrFieldBase& other) {
Reserve(current_size_ + other.current_size_);
for (int i = 0; i < other.current_size_; i++) {
TypeHandler::Merge(other.Get<TypeHandler>(i), Add<TypeHandler>());
TypeHandler::Merge(other.template Get<TypeHandler>(i), Add<TypeHandler>());
}
}

Loading…
Cancel
Save