summaryrefslogtreecommitdiff
path: root/tests/test_accum_iter.cc
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-04-19 13:39:48 +0200
committerMurray Cumming <murrayc@murrayc.com>2016-04-19 13:39:48 +0200
commit815cdcf2941b3a11178a2b335aa066d83be627bb (patch)
tree40f24fb9678204f828c13f7f125ce4e46200bb45 /tests/test_accum_iter.cc
parent180353986d101e367c26b3199c44c7b2e4c1e681 (diff)
downloadsigc++-815cdcf2941b3a11178a2b335aa066d83be627bb.tar.gz
Revert "Always use typename rather than class for template types."
This reverts commit 180353986d101e367c26b3199c44c7b2e4c1e681. Because I misread https://stackoverflow.com/questions/213121/use-class-or-typename-for-template-parameters class is _still_ needed for template template parameters in C++14, though g++ and clang++ seem to support it anyway.
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 9a00e39..43cf2d7 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 <typename I>
+ template <class I>
typename std::iterator_traits<I>::value_type operator()(I i1, I i2)
{
return *std::min_element(i1, i2);