diff options
author | Murray Cumming <murrayc@murrayc.com> | 2016-04-19 13:39:48 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2016-04-19 13:39:48 +0200 |
commit | 815cdcf2941b3a11178a2b335aa066d83be627bb (patch) | |
tree | 40f24fb9678204f828c13f7f125ce4e46200bb45 /tests/test_accum_iter.cc | |
parent | 180353986d101e367c26b3199c44c7b2e4c1e681 (diff) | |
download | sigc++-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.cc | 2 |
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); |