]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/string.h
Removed sometimes-ambiguous wxString operator
[wxWidgets.git] / include / wx / string.h
index b02cff173d69462dc6f2b13a420379415c965d11..4c1ef6f8ae1b9008108baaf06d5ef6dc9462cd5b 100644 (file)
@@ -303,14 +303,19 @@ public:
     char& Last()
       { wxASSERT( !IsEmpty() ); CopyBeforeWrite(); return m_pchData[Len()-1]; }
 
+    // on alpha-linux this gives overload problems:
+    // Also on Solaris, so removing for now (JACS)
+/*
+#if ! defined(__ALPHA__)
     /// operator version of GetChar
     char  operator[](size_t n) const
       { ASSERT_VALID_INDEX( n ); return m_pchData[n]; }
-#ifdef __WXMSW__
+#endif
+*/
+
     /// operator version of GetChar
     char  operator[](int n) const
       { ASSERT_VALID_INDEX( n ); return m_pchData[n]; }
-#endif
     /// operator version of GetWritableChar
     char& operator[](size_t n)
       { ASSERT_VALID_INDEX( n ); CopyBeforeWrite(); return m_pchData[n]; }