From 18a84c6b3ca0856cb17a2d1255a4ee0ddba40b7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hampus=20Fr=C3=B6jdholm?= Date: Sun, 2 Oct 2022 14:01:37 +0200 Subject: [PATCH] Fix compilation failure with clang 12 and debug=yes The pointer type alias was missing from FlattenedView::Iterator causing std::iterator_traits to be an empty class. --- src/ranges.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ranges.hh b/src/ranges.hh index 2f9e9a210..816d6efbb 100644 --- a/src/ranges.hh +++ b/src/ranges.hh @@ -435,6 +435,7 @@ struct FlattenedView using iterator_category = std::forward_iterator_tag; using difference_type = std::size_t; using reference = value_type&; + using pointer = value_type*; Iterator() = default; Iterator(OuterIt begin, OuterIt end) : m_outer_it{begin}, m_outer_end{end}