Skip to content

Replaced deprecated string conversion function#445

Merged
garyscavone merged 3 commits into
thestk:masterfrom
ERSUCC:master
Nov 6, 2024
Merged

Replaced deprecated string conversion function#445
garyscavone merged 3 commits into
thestk:masterfrom
ERSUCC:master

Conversation

@ERSUCC

@ERSUCC ERSUCC commented Oct 31, 2024

Copy link
Copy Markdown
Contributor

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

sonoro1234 commented Oct 31, 2024

Copy link
Copy Markdown
Contributor

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

@ERSUCC

ERSUCC commented Oct 31, 2024

Copy link
Copy Markdown
Contributor Author

@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
Copy Markdown
Contributor

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

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