]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/string.h
compilation fix for BCC5.5
[wxWidgets.git] / include / wx / string.h
index 09cca2799ce1b4f12cc2f8d559374cd7ba45b1c7..3efcab7b9f69d890cc8c35da46647b521790b2d0 100644 (file)
@@ -721,14 +721,15 @@ public:
       reverse_iterator_impl operator--(int)
         { reverse_iterator_impl tmp = *this; ++m_cur; return tmp; }
 
+      // NB: explicit <T> in the functions below is to keep BCC 5.5 happy
       reverse_iterator_impl operator+(int n) const
-        { return reverse_iterator_impl(m_cur - n); }
+        { return reverse_iterator_impl<T>(m_cur - n); }
       reverse_iterator_impl operator+(size_t n) const
-        { return reverse_iterator_impl(m_cur - n); }
+        { return reverse_iterator_impl<T>(m_cur - n); }
       reverse_iterator_impl operator-(int n) const
-        { return reverse_iterator_impl(m_cur + n); }
+        { return reverse_iterator_impl<T>(m_cur + n); }
       reverse_iterator_impl operator-(size_t n) const
-        { return reverse_iterator_impl(m_cur + n); }
+        { return reverse_iterator_impl<T>(m_cur + n); }
       reverse_iterator_impl operator+=(int n)
         { m_cur -= n; return *this; }
       reverse_iterator_impl operator+=(size_t n)