X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14dc53b2f3690c4f4e5af0cbfd0e44a633a21c3e..4e2251ecd324ba89c486434485efcb1d32ee7dca:/include/wx/cppunit.h?ds=sidebyside diff --git a/include/wx/cppunit.h b/include/wx/cppunit.h index 756ecfa118..6698891991 100644 --- a/include/wx/cppunit.h +++ b/include/wx/cppunit.h @@ -5,6 +5,7 @@ // Created: 15.02.04 // RCS-ID: $Id$ // Copyright: (c) 2004 Vadim Zeitlin +// Licence: wxWindows Licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_CPPUNIT_H_ @@ -77,6 +78,18 @@ WXTEST_ANY_WITH_CONDITION(suiteName, Condition, testMethod, CPPUNIT_TEST_FAIL(testMethod)) +/////////////////////////////////////////////////////////////////////////////// +// stream inserter for wxString +// + +#include "wx/string.h" + +inline std::ostream& operator<<(std::ostream& o, const wxString& s) +{ + return o << s.mb_str(); +} + + /////////////////////////////////////////////////////////////////////////////// // Some more compiler warning tweaking and auto linking. //