]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cppunit.h
allow passing wx[W]CharBuffer to wx vararg templates
[wxWidgets.git] / include / wx / cppunit.h
index b7848534a3d5f652edccb241270ebf04ed67dbc6..669889199132b14f4d9b04e35147517fcfb7738d 100644 (file)
     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.
 //