Skip to content

Commit 999b905

Browse files
committed
test_accum_iter: Use of decltype(auto).
1 parent 764c17e commit 999b905

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_accum_iter.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ struct min_accum
2525
using result_type = T;
2626

2727
template <typename I>
28-
typename std::iterator_traits<I>::value_type operator()(I i1, I i2)
28+
decltype(auto)
29+
operator()(I i1, I i2)
2930
{
3031
return *std::min_element(i1, i2);
3132
}

0 commit comments

Comments
 (0)