mirror of
https://github.com/boostorg/iterator.git
synced 2025-07-25 18:37:19 +02:00
Cleanups for MWERKS, without changing functionality
[SVN r11585]
This commit is contained in:
@ -842,12 +842,12 @@ struct iterator_adaptor :
|
|||||||
{ return *(*this + n); }
|
{ return *(*this + n); }
|
||||||
|
|
||||||
self& operator++() {
|
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
|
// Odd bug, MWERKS couldn't deduce the type for the member template
|
||||||
// Workaround by explicitly specifying the type.
|
// Workaround by explicitly specifying the type.
|
||||||
policies().increment<self>(*this);
|
policies().increment<self>(*this);
|
||||||
#else
|
|
||||||
policies().increment(*this);
|
|
||||||
#endif
|
#endif
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
@ -855,10 +855,10 @@ struct iterator_adaptor :
|
|||||||
self operator++(int) { self tmp(*this); ++*this; return tmp; }
|
self operator++(int) { self tmp(*this); ++*this; return tmp; }
|
||||||
|
|
||||||
self& operator--() {
|
self& operator--() {
|
||||||
#ifdef __MWERKS__
|
#if !defined(__MWERKS__) || __MWERKS__ >= 0x2405
|
||||||
policies().decrement<self>(*this);
|
|
||||||
#else
|
|
||||||
policies().decrement(*this);
|
policies().decrement(*this);
|
||||||
|
#else
|
||||||
|
policies().decrement<self>(*this);
|
||||||
#endif
|
#endif
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
@ -1314,7 +1314,7 @@ namespace detail {
|
|||||||
template <class Iterator>
|
template <class Iterator>
|
||||||
struct non_bidirectional_category
|
struct non_bidirectional_category
|
||||||
{
|
{
|
||||||
# if !defined(__MWERKS__) || __MWERKS__ > 0x4000
|
# if !defined(__MWERKS__) || __MWERKS__ > 0x2405
|
||||||
typedef typename reduce_to_base_class<
|
typedef typename reduce_to_base_class<
|
||||||
std::forward_iterator_tag,
|
std::forward_iterator_tag,
|
||||||
typename iterator_traits<Iterator>::iterator_category
|
typename iterator_traits<Iterator>::iterator_category
|
||||||
|
Reference in New Issue
Block a user