From ea1513596d734229fcf0c831d04c681cb2d57f05 Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Tue, 7 Nov 2000 22:22:49 +0000 Subject: [PATCH] changed counting iterator policies to a template class to avoid using template member functions [SVN r8157] --- include/boost/pending/integer_range.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/boost/pending/integer_range.hpp b/include/boost/pending/integer_range.hpp index 7726936..3d396b4 100644 --- a/include/boost/pending/integer_range.hpp +++ b/include/boost/pending/integer_range.hpp @@ -15,7 +15,8 @@ #include -#if !defined(BOOST_MSVC) +#if 1 +// Still evaluating whether VC++ can handle this. #define BOOST_USE_ITERATOR_ADAPTORS #endif @@ -31,9 +32,9 @@ namespace boost { // Counting Iterator and Integer Range Class #ifdef BOOST_USE_ITERATOR_ADAPTORS +template struct counting_iterator_policies : public default_iterator_policies { - template const IntegerType& dereference(type, const IntegerType& i) const { return i; } @@ -51,7 +52,8 @@ struct counting_iterator_traits { template struct integer_range { #ifdef BOOST_USE_ITERATOR_ADAPTORS - typedef iterator_adaptor, counting_iterator_traits, IntegerType> iterator; #else typedef int_iterator iterator;