forked from boostorg/iterator
fixed some mwerks compiler errors
[SVN r8683]
This commit is contained in:
@ -29,7 +29,7 @@ public:
|
||||
typedef IntT value_type;
|
||||
typedef IntT& reference;
|
||||
typedef IntT* pointer;
|
||||
typedef ptrdiff_t difference_type;
|
||||
typedef std::ptrdiff_t difference_type;
|
||||
|
||||
inline int_iterator() : _i(0) { }
|
||||
inline int_iterator(IntT i) : _i(i) { }
|
||||
|
@ -259,11 +259,7 @@ namespace detail {
|
||||
template <class Iter, class Diff>
|
||||
inline void
|
||||
advance_impl(Iter& i, Diff n, std::random_access_iterator_tag) {
|
||||
#ifdef __MWERKS__
|
||||
i.policies().advance<Iter>(i.iter(), n);
|
||||
#else
|
||||
i.policies().advance(i.iter(), n);
|
||||
#endif
|
||||
}
|
||||
|
||||
// Dummy versions for non-bidirectional iterators
|
||||
@ -276,11 +272,7 @@ namespace detail {
|
||||
template <class Iter>
|
||||
inline void
|
||||
decrement_impl(Iter& i, std::bidirectional_iterator_tag) {
|
||||
#ifdef __MWERKS__
|
||||
i.policies().decrement<Iter>(i.iter());
|
||||
#else
|
||||
i.policies().decrement(i.iter());
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace detail
|
||||
|
Reference in New Issue
Block a user