From ffa24411d203689d0fa294aab009bc448e7a929c Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Thu, 11 Aug 2016 00:44:50 +0100 Subject: [PATCH] Narrow the explicit iterator category of our iterator adaptors to reflect their implicit category. --- src/blackmisc/iterator.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blackmisc/iterator.h b/src/blackmisc/iterator.h index aa7a46fac..14c47b1cd 100644 --- a/src/blackmisc/iterator.h +++ b/src/blackmisc/iterator.h @@ -148,7 +148,7 @@ namespace BlackMisc * By creating a CRange from such iterators, it is possible to perform a transformation on a container without copying elements. */ template class TransformIterator - : public std::iterator()(std::declval::value_type>()))>> { public: @@ -213,7 +213,7 @@ namespace BlackMisc * * By creating a CRange from such iterators, it is possible to return the results of predicate methods without copying elements. */ - template class ConditionalIterator : public std::iterator::value_type> + template class ConditionalIterator : public std::iterator::value_type> { public: //! Constructor. @@ -277,7 +277,7 @@ namespace BlackMisc /*! * Iterator wrapper which concatenates zero or more pairs of begin and end iterators. */ - template class ConcatIterator : public std::iterator::value_type> + template class ConcatIterator : public std::iterator::value_type> { public: //! Constructor.