Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Eliminate usage of deprecated API in sysinfo.cc #1474

New issue

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

Merged
merged 3 commits into from
Aug 30, 2022
Merged

Conversation

oontvoo
Copy link
Member

@oontvoo oontvoo commented Aug 26, 2022

The std::wstring_convert is deprecated in C++17 (without alternative).
Since this code is in the windows branch, we could use the win32 API (MultiByteToWideChar)

The `std::wstring_convert` is deprecated in C++17.
Since this code is in the windows branch, we could use the win32 API (MultiByteToWideChar)
@dmah42 dmah42 self-requested a review August 29, 2022 16:28
@dmah42
Copy link
Member

dmah42 commented Aug 29, 2022

can you take a look at the lint issue please?

@oontvoo
Copy link
Member Author

oontvoo commented Aug 30, 2022

Fixed the lint issue. PTAL. Thanks!

@dmah42 dmah42 merged commit db55c89 into google:main Aug 30, 2022
@dmah42
Copy link
Member

dmah42 commented Aug 30, 2022

thanks

dmah42 pushed a commit that referenced this pull request Sep 14, 2022
* Eliminate usage of deprecated  API in sysinfo.cc

The `std::wstring_convert` is deprecated in C++17.
Since this code is in the windows branch, we could use the win32 API (MultiByteToWideChar)

* ran clang-format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants