add explicit stream operator

This commit is contained in:
Caolán McNamara 2011-03-01 15:07:36 +00:00
parent 673c4f29ff
commit 5e25f9be4e

View file

@ -50,6 +50,11 @@ struct CheckFailed {
rtl::OUString message;
};
::std::ostream& operator<< (::std::ostream& os, const ::rtl::OUString& str)
{
return os << ::rtl::OUStringToOString(str, RTL_TEXTENCODING_UTF8).getStr();
}
template< typename T > void checkEqual(T const & value, T const & argument) {
if (argument != value) {
std::ostringstream s;