diff --git a/docs/changes.txt b/docs/changes.txt index 86c8f32d54..f134a15a01 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -206,6 +206,7 @@ All: - Norwegian (Bokmål) translation added (Hans F. Nordhaug) - wxDynamicLibrary::HasSymbol() added +- added wxTextInputStream::operator>>(wchar_t) for compilers which support this All (GUI): diff --git a/include/wx/txtstrm.h b/include/wx/txtstrm.h index 12381fa37c..014136cb74 100644 --- a/include/wx/txtstrm.h +++ b/include/wx/txtstrm.h @@ -64,6 +64,9 @@ public: // Operators wxTextInputStream& operator>>(wxString& word); wxTextInputStream& operator>>(char& c); +#if wxUSE_UNICODE && wxWCHAR_T_IS_REAL_TYPE + wxTextInputStream& operator>>(wchar_t& wc); +#endif // wxUSE_UNICODE wxTextInputStream& operator>>(wxInt16& i); wxTextInputStream& operator>>(wxInt32& i); wxTextInputStream& operator>>(wxUint16& i);