]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/string.h
Removed sometimes-ambiguous wxString operator
[wxWidgets.git] / include / wx / string.h
index 58b708df2e027f6fe5a1bcb4a9814d0fec2638d3..4c1ef6f8ae1b9008108baaf06d5ef6dc9462cd5b 100644 (file)
@@ -303,11 +303,16 @@ 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
-#if 0
     char  operator[](size_t n) const
       { ASSERT_VALID_INDEX( n ); return m_pchData[n]; }
 #endif
+*/
+
     /// operator version of GetChar
     char  operator[](int n) const
       { ASSERT_VALID_INDEX( n ); return m_pchData[n]; }