// 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*)
// 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;