X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f29051b4e53fd2265005d4ec6bf727abd32493a..040b9528d149c2bb2497d47d9175635c03baffe2:/include/wx/stringimpl.h?ds=sidebyside

diff --git a/include/wx/stringimpl.h b/include/wx/stringimpl.h
index f3cd17cec2..00d24e2242 100644
--- a/include/wx/stringimpl.h
+++ b/include/wx/stringimpl.h
@@ -382,9 +382,11 @@ public:
 
   // lib.string.access
     // return the character at position n
+  value_type operator[](size_type n) const { return m_pchData[n]; }
   value_type at(size_type n) const
     { wxASSERT_VALID_INDEX( n ); return m_pchData[n]; }
     // returns the writable character at position n
+  reference operator[](size_type n) { CopyBeforeWrite(); return m_pchData[n]; }
   reference at(size_type n)
   {
     wxASSERT_VALID_INDEX( n );