X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f29051b4e53fd2265005d4ec6bf727abd32493a..e1bdb16a91b57e61e8d1a621a1369ded380362be:/include/wx/stringimpl.h?ds=inline diff --git a/include/wx/stringimpl.h b/include/wx/stringimpl.h index f3cd17cec2..e62127f06f 100644 --- a/include/wx/stringimpl.h +++ b/include/wx/stringimpl.h @@ -94,8 +94,10 @@ extern WXDLLIMPEXP_DATA_BASE(const wxStringCharType*) wxEmptyStringImpl; #undef wxUSE_STD_STRING #define wxUSE_STD_STRING 1 + // the versions of std::string included with gcc 2.95 and VC6 (for which + // _MSC_VER == 1200) and eVC4 (_MSC_VER == 1201) lack clear() method #if (defined(__GNUG__) && (__GNUG__ < 3)) || \ - (defined(_MSC_VER) && (_MSC_VER <= 1200)) + !wxCHECK_VISUALC_VERSION(7) || defined(__EVC4__) #define wxSTRING_BASE_HASNT_CLEAR #endif @@ -382,9 +384,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 );