]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for VC7.1: add size_t overloads for arithmetic operators on wxStringI...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 6 Apr 2007 19:08:21 +0000 (19:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 6 Apr 2007 19:08:21 +0000 (19:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/stringimpl.h

index d81185344bc1feaf81c2ea6a214b08e2d6c9a918..04ff3e43a164e8667d27a672e89f010fd51ea85a 100644 (file)
@@ -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                        \