enough to automatically convert to a pointer for array indexing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2258
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
operator const char *() const { return m_str; }
}
operator const char *() const { return m_str; }
+ char operator[](size_t n) const { return m_str[n]; }
}
operator const wchar_t *() const { return m_wcs; }
}
operator const wchar_t *() const { return m_wcs; }
+ wchar_t operator[](size_t n) const { return m_wcs[n]; }
+
private:
wchar_t *m_wcs;
};
private:
wchar_t *m_wcs;
};