From 15c12109822b275a6936346ef7760fae2e737e26 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 6 Apr 2007 19:08:21 +0000 Subject: [PATCH] compilation fix for VC7.1: add size_t overloads for arithmetic operators on wxStringImpl::iterator git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/stringimpl.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/wx/stringimpl.h b/include/wx/stringimpl.h index d81185344b..04ff3e43a1 100644 --- a/include/wx/stringimpl.h +++ b/include/wx/stringimpl.h @@ -207,11 +207,19 @@ public: \ iterator_name operator+(int n) const \ { return iterator_name(m_ptr + n); } \ + iterator_name operator+(size_t n) const \ + { return iterator_name(m_ptr + n); } \ iterator_name operator-(int n) const \ { return iterator_name(m_ptr - n); } \ + iterator_name operator-(size_t n) const \ + { return iterator_name(m_ptr - n); } \ iterator_name& operator+=(int n) \ { m_ptr += n; return *this; } \ + iterator_name& operator+=(size_t n) \ + { m_ptr += n; return *this; } \ iterator_name& operator-=(int n) \ + { m_ptr -= n; return *this; } \ + iterator_name& operator-=(size_t n) \ { m_ptr -= n; return *this; } \ \ size_t operator-(const iterator_name& i) const \ -- 2.45.2