From 1c5b24f6659faf70735ae07a59d7f6c384bd5902 Mon Sep 17 00:00:00 2001 From: Saumya <76432998+SaumyaBhushan@users.noreply.github.com> Date: Fri, 24 Jun 2022 11:06:09 +0530 Subject: [PATCH] iterator_traits> is missing reference (#58647) * iterator_traits> is missing reference * added comments --- src/vpart_range.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vpart_range.h b/src/vpart_range.h index 7873e244b15fe..049388f77cdf5 100644 --- a/src/vpart_range.h +++ b/src/vpart_range.h @@ -86,6 +86,8 @@ template struct iterator_traits> { using value_type = vpart_reference; // TODO: maybe change into random access iterator? This requires adding // more operators to the iterator, which may not be efficient. + using reference = const vpart_reference &; + using pointer = const vpart_reference *; using iterator_category = std::forward_iterator_tag; }; } // namespace std