X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/254696bb8f2b10e2231475c4c8334e6f0129503f..ca77701441e39245dcbfce903049e76f166979e5:/include/wx/anystr.h?ds=sidebyside diff --git a/include/wx/anystr.h b/include/wx/anystr.h index f816745625..4251d37d1a 100644 --- a/include/wx/anystr.h +++ b/include/wx/anystr.h @@ -61,6 +61,10 @@ public: // different conversions to pointers) operator bool() const { return m_str != NULL; } + // at least VC6 and VC7 also need this one or they complain about ambiguity + // for !anystr expressions + bool operator!() const { return !((bool)*this); } + // and these are the conversions operator which allow to assign the result // of FuncReturningAnyStrPtr() to either char* or wxChar* (i.e. wchar_t*) @@ -124,8 +128,8 @@ public: // already works fine. private: - // the original string and the offset in it we correspond to, if the string - // is NULL this object is NULL pointer-like + // the original string and the position in it we correspond to, if the + // string is NULL this object is NULL pointer-like const wxString * const m_str; const wxString::const_iterator m_iter;