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

Functionalities in <codecvt> are deprecated since C++ 17/20 #28

Open
LyricZhao opened this issue May 16, 2022 · 1 comment · May be fixed by #50
Open

Functionalities in <codecvt> are deprecated since C++ 17/20 #28

LyricZhao opened this issue May 16, 2022 · 1 comment · May be fixed by #50

Comments

@LyricZhao
Copy link

Some functionalities in <codecvt> (e.g. std::codecvt<char16_t, char, std::mbstate_t>) are being deprecated since C++ 17/20. Please refer to https://en.cppreference.com/w/cpp/locale/codecvt for more details. Compiling with these usages may throw annoying warnings.

@LyricZhao
Copy link
Author

An easy way to ignore that is to add diagnostic pragmas around the entire implement:

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"

...

#pragma GCC diagnostic pop

Since Clang could recognize GCC, we just put GCC here in the pragmas.

@renatoGarcia renatoGarcia linked a pull request Apr 30, 2024 that will close this issue
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 a pull request may close this issue.

1 participant