summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-04-21 19:51:27 +0200
committerMurray Cumming <murrayc@murrayc.com>2016-04-21 19:51:27 +0200
commit999b9050964bb00ba1f72bea29a113b111adefb9 (patch)
treeaf73180eee4f5282bad1dabc81adbea64c3f9a15
parent764c17e28600eb57bb7271116f9d5f98858959b5 (diff)
downloadsigc++-999b9050964bb00ba1f72bea29a113b111adefb9.tar.gz
test_accum_iter: Use of decltype(auto).
-rw-r--r--tests/test_accum_iter.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_accum_iter.cc b/tests/test_accum_iter.cc
index 81ada50..a4fe697 100644
--- a/tests/test_accum_iter.cc
+++ b/tests/test_accum_iter.cc
@@ -25,7 +25,8 @@ struct min_accum
using result_type = T;
template <typename I>
- typename std::iterator_traits<I>::value_type operator()(I i1, I i2)
+ decltype(auto)
+ operator()(I i1, I i2)
{
return *std::min_element(i1, i2);
}