From 4c2b3a9d2cf018c2344a68b7c2add8999de7d003 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Mon, 5 Nov 2001 15:25:45 +0000 Subject: [PATCH] Cleanups for MWERKS, without changing functionality [SVN r11585] --- include/boost/iterator_adaptors.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/boost/iterator_adaptors.hpp b/include/boost/iterator_adaptors.hpp index d6066ca..5f8b378 100644 --- a/include/boost/iterator_adaptors.hpp +++ b/include/boost/iterator_adaptors.hpp @@ -842,12 +842,12 @@ struct iterator_adaptor : { return *(*this + n); } self& operator++() { -#ifdef __MWERKS__ +#if !defined(__MWERKS__) || __MWERKS__ >= 0x2405 + policies().increment(*this); +#else // Odd bug, MWERKS couldn't deduce the type for the member template // Workaround by explicitly specifying the type. policies().increment(*this); -#else - policies().increment(*this); #endif return *this; } @@ -855,10 +855,10 @@ struct iterator_adaptor : self operator++(int) { self tmp(*this); ++*this; return tmp; } self& operator--() { -#ifdef __MWERKS__ - policies().decrement(*this); -#else +#if !defined(__MWERKS__) || __MWERKS__ >= 0x2405 policies().decrement(*this); +#else + policies().decrement(*this); #endif return *this; } @@ -1314,7 +1314,7 @@ namespace detail { template struct non_bidirectional_category { -# if !defined(__MWERKS__) || __MWERKS__ > 0x4000 +# if !defined(__MWERKS__) || __MWERKS__ > 0x2405 typedef typename reduce_to_base_class< std::forward_iterator_tag, typename iterator_traits::iterator_category