Fix undefined reference to `operator<<(std::ostream&, wchar_t const*)' (issue #2553)

This commit is contained in:
Marshall Greenblatt 2019-02-13 17:30:04 -05:00
parent 406e347d6f
commit 359a5b7cb5
1 changed files with 3 additions and 3 deletions

View File

@ -253,6 +253,9 @@ ErrnoLogMessage::~ErrnoLogMessage() {
} }
#endif // OS_WIN #endif // OS_WIN
} // namespace logging
} // namespace cef
std::ostream& operator<<(std::ostream& out, const wchar_t* wstr) { std::ostream& operator<<(std::ostream& out, const wchar_t* wstr) {
cef_string_utf8_t str = {0}; cef_string_utf8_t str = {0};
std::wstring tmp_str(wstr); std::wstring tmp_str(wstr);
@ -261,6 +264,3 @@ std::ostream& operator<<(std::ostream& out, const wchar_t* wstr) {
cef_string_utf8_clear(&str); cef_string_utf8_clear(&str);
return out; return out;
} }
} // namespace logging
} // namespace cef