diff --git a/util/joint_sort.hh b/util/joint_sort.hh index f43f862a..50316c7e 100644 --- a/util/joint_sort.hh +++ b/util/joint_sort.hh @@ -57,11 +57,11 @@ template class JointProxy { typedef JointIter InnerIterator; public: - typedef struct { + struct value_type { typename std::iterator_traits::value_type key; typename std::iterator_traits::value_type value; const typename std::iterator_traits::value_type &GetKey() const { return key; } - } value_type; + }; JointProxy(const KeyIter &key_iter, const ValueIter &value_iter) : inner_(key_iter, value_iter) {} JointProxy(const JointProxy &other) : inner_(other.inner_) {}