X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/99d800190a04a2deaf769017a5fae04a4ae50378..42eba91294e1c374908b63bdc5f22a5c4c29f110:/include/wx/cppunit.h?ds=sidebyside diff --git a/include/wx/cppunit.h b/include/wx/cppunit.h index b7848534a3..6698891991 100644 --- a/include/wx/cppunit.h +++ b/include/wx/cppunit.h @@ -78,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. //