-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Volatile is deprecated in C++20 #1193
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
Comments
I think we are far from ready to adapt to the C + + 20 standard. But if you like, you can submit a PR to fix this, and I'd love to review it then. |
@dawesc, any opinion? This was originally your code, apparently. https://en.cppreference.com/w/cpp/language/cv
|
This seems to be the only reason which prevent to compile with c++20 standard using clang 10. |
I have create the following PR to fix this: |
Fixed by #1228 |
Describe the bug
In C++20 a lot of the volatile keyword is being deprecated (P1152R3)
For example deallocate has this problem
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected the build to complete
Desktop (please complete the following information):
Additional context
I ran into this problem because i am using jsoncpp in a project that was setting CXX_STANDARD to 20, and then when we upgraded gcc we were getting compile errors.
For example
The text was updated successfully, but these errors were encountered: