From 2c94045365a17840b71aaf3ce2f08512e9474eeb Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Wed, 30 Aug 2006 08:37:39 +0000 Subject: [PATCH] Stream inserter to wxString git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/cppunit.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/wx/cppunit.h b/include/wx/cppunit.h index b7848534a3..8bbc99f7f5 100644 --- a/include/wx/cppunit.h +++ b/include/wx/cppunit.h @@ -78,6 +78,16 @@ WXTEST_ANY_WITH_CONDITION(suiteName, Condition, testMethod, CPPUNIT_TEST_FAIL(testMethod)) +/////////////////////////////////////////////////////////////////////////////// +// stream inserter for wxString +// + +inline std::ostream& operator<<(std::ostream& o, const wxString& s) +{ + return o << s.mb_str(); +} + + /////////////////////////////////////////////////////////////////////////////// // Some more compiler warning tweaking and auto linking. // -- 2.45.2