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

Move to c++17. #368

Merged
merged 1 commit into from
Sep 14, 2023
Merged

Move to c++17. #368

merged 1 commit into from
Sep 14, 2023

Conversation

mgautierfr
Copy link
Collaborator

All our compilers should handle c++17. Let's move on.

Following of openzim/libzim#819
Fix openzim/libzim#757

All our compilers should handle c++17. Let's move on.
Copy link
Collaborator

@veloman-yunkan veloman-yunkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did my best to review the changes carefully. To the best of my understanding the changes are limited to replacing a single character 1 with a single character 7. Despite the seemingly minor modification its impact can be very consequential due to the changes in the language specification of C++17 relative to C++11. In particular:

  • New rules concerning the order of evaluation. Some of those enhancements of the specification shrink the realm of undefined behavior, possibly breaking the functionality of working (though buggy) code that accidentally took advantage of a particular implementation by a compiler of the old gap in the language standard.

  • Removal of trigraphs.

  • Removal of the increment operator for the bool type. This can result in changed semantics of template metaprogramming code snippets relying on SFINAE.

  • etc, and so on, ...

Therefore these changes must be thoroughly tested before they can be allowed into the next release.

P.S. 😄

@kelson42 kelson42 merged commit dc703e0 into main Sep 14, 2023
9 of 11 checks passed
@kelson42 kelson42 deleted the cpp17 branch September 14, 2023 15:14
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.

gtest C++14 requirement
3 participants