Skip to content
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

Replaced deprecated string conversion function #445

Merged
merged 3 commits into from
Nov 6, 2024

Conversation

ERSUCC
Copy link
Contributor

@ERSUCC ERSUCC commented Oct 31, 2024

When building RtAudio on Mac with C++17, a deprecation warning is thrown for the std::wstring_convert class. This pull request replaces that usage with conversion functions that have not been deprecated.

@sonoro1234
Copy link
Contributor

sonoro1234 commented Oct 31, 2024

set(CMAKE_CXX_STANDARD 11) in CMakeLists.txt is not c++17.
C++11 is not deprecated, it is a choice.

@ERSUCC
Copy link
Contributor Author

ERSUCC commented Oct 31, 2024

@sonoro1234 I'm aware that the main repo currently uses C++11, but I have an ongoing personal project using C++17, and I am compiling RtAudio statically for that project. It's not a huge deal since as you said, C++11 is not deprecated, I just figured it is better to future-proof as long as the solution still works in C++11. Feel free to drop the pull request if you disagree, it still works as intended in my project.

@sonoro1234
Copy link
Contributor

You did not said it works with c++11!!
That is good.

@garyscavone garyscavone merged commit 7aba116 into thestk:master Nov 6, 2024
12 checks passed
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.

3 participants