From f543a9843b007669f3a3dee2209f7ae6c019a66a Mon Sep 17 00:00:00 2001 From: Nikita <45687815+N1kSt4r@users.noreply.github.com> Date: Tue, 6 Sep 2022 21:23:58 +0300 Subject: [PATCH] add struct name Fix build for Windows --- util/joint_sort.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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_) {}