We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I write this code to print wchar_t using glog:
std::ostream& operator<<(std::ostream& out, const wchar_t* wstr) { std::mbstate_t state = std::mbstate_t(); int len = 1 + std::wcsrtombs(nullptr, &wstr, 0, &state); std::vector<char> mbstr(len); std::wcsrtombs(&mbstr[0], &wstr, mbstr.size(), &state); out << &mbstr[0]; return out; } std::ostream& operator<<(std::ostream& out, const std::wstring& str) { return operator<<(out, str.c_str()); }
but it does not work, why??
The text was updated successfully, but these errors were encountered:
refer here: https://code.google.com/p/google-glog/issues/detail?id=4
Sorry, something went wrong.
No branches or pull requests
I write this code to print wchar_t using glog:
but it does not work, why??
The text was updated successfully, but these errors were encountered: