From 11230a7af10243c022e5594b6e309e0bee0863d1 Mon Sep 17 00:00:00 2001 From: Thomas Witt Date: Fri, 25 Nov 2005 22:16:09 +0000 Subject: [PATCH] Fix counting_iterator::distance_to fails to instantiate for non default template arguments. [SVN r31779] --- include/boost/iterator/counting_iterator.hpp | 4 ++-- test/counting_iterator_test.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/boost/iterator/counting_iterator.hpp b/include/boost/iterator/counting_iterator.hpp index 7b772ed..1298a31 100644 --- a/include/boost/iterator/counting_iterator.hpp +++ b/include/boost/iterator/counting_iterator.hpp @@ -172,7 +172,7 @@ class counting_iterator # if 0 template counting_iterator( - counting_iterator const& t + counting_iterator const& t , typename enable_if_convertible::type* = 0 ) : super_t(t.base()) @@ -188,7 +188,7 @@ class counting_iterator template difference_type - distance_to(counting_iterator const& y) const + distance_to(counting_iterator const& y) const { typedef typename mpl::if_< detail::is_numeric diff --git a/test/counting_iterator_test.cpp b/test/counting_iterator_test.cpp index c30a3e0..7b19ba8 100644 --- a/test/counting_iterator_test.cpp +++ b/test/counting_iterator_test.cpp @@ -277,6 +277,7 @@ int main() // Test user-defined type. test_integer3(); + test_integer3(); test_integer(); test_integer();