]> git.saurik.com Git - wxWidgets.git/commitdiff
Stream inserter to wxString
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Wed, 30 Aug 2006 08:37:39 +0000 (08:37 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Wed, 30 Aug 2006 08:37:39 +0000 (08:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/cppunit.h

index b7848534a3d5f652edccb241270ebf04ed67dbc6..8bbc99f7f51a9284014bb0540beb7ba518d2d069 100644 (file)
     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.
 //