summaryrefslogtreecommitdiff
path: root/tests/test_accum_iter.cc
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-04-19 13:47:18 +0200
committerMurray Cumming <murrayc@murrayc.com>2016-04-19 13:47:18 +0200
commitf19a492808d724a0f73e83fdf76ba7aa2aa3338c (patch)
tree41e66d4237ea57d2fbcc71744459b64640da581a /tests/test_accum_iter.cc
parent815cdcf2941b3a11178a2b335aa066d83be627bb (diff)
downloadsigc++-f19a492808d724a0f73e83fdf76ba7aa2aa3338c.tar.gz
Use typename instead of class for all template parameters.
Apart from template template parameters, which must still be class according to the C++14 standard: http://stackoverflow.com/a/11311432/1123654 though g++ and clang++ actually already supporting using typename instead by implementing N4051: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4051.html
Diffstat (limited to 'tests/test_accum_iter.cc')
-rw-r--r--tests/test_accum_iter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_accum_iter.cc b/tests/test_accum_iter.cc
index 43cf2d7..9a00e39 100644
--- a/tests/test_accum_iter.cc
+++ b/tests/test_accum_iter.cc
@@ -20,7 +20,7 @@ struct min_accum
{
using result_type = T;
- template <class I>
+ template <typename I>
typename std::iterator_traits<I>::value_type operator()(I i1, I i2)
{
return *std::min_element(i1, i2);