diff --git a/src/ranges.hh b/src/ranges.hh index 88f6d2ef..014dbd8b 100644 --- a/src/ranges.hh +++ b/src/ranges.hh @@ -53,7 +53,7 @@ template using IteratorOf = decltype(std::begin(std::declval())); template -using ValueOf = typename Range::value_type; +using ValueOf = decltype(*std::declval>()); template struct SkipView @@ -450,6 +450,16 @@ auto gather() }); } +template