Index: trunk/lttoolbox/lttoolbox/string_to_wostream.h =================================================================== --- trunk/lttoolbox/lttoolbox/string_to_wostream.h (revision 69746) +++ trunk/lttoolbox/lttoolbox/string_to_wostream.h (revision 69748) @@ -6,9 +6,7 @@ #include static std::wostream & operator<<(std::wostream & ostr, std::string const & str) { - std::copy( - str.begin(), str.end(), - std::ostream_iterator(ostr)); + ostr << str.c_str(); return ostr; } Index: trunk/apertium/apertium/string_to_wostream.h =================================================================== --- trunk/apertium/apertium/string_to_wostream.h (revision 69746) +++ trunk/apertium/apertium/string_to_wostream.h (revision 69748) @@ -6,9 +6,7 @@ #include std::wostream & operator<<(std::wostream & ostr, std::string const & str) { - std::copy( - str.begin(), str.end(), - std::ostream_iterator(ostr)); + ostr << str.c_str(); return ostr; }