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

update code to make it compatible with C++17 #92

Closed
wants to merge 1 commit into from

Conversation

thachdo
Copy link

@thachdo thachdo commented Mar 9, 2024

It seems ubuntu 16.04 is quite old. This PR is to make the source compatibility with C++17, which can be compiled in later ubuntu versions. Maybe need to update the README as well.

@edrosten
Copy link
Owner

Which system does this help for?

My system compiler is G++11 which has C++17 by default. The _v variants were added in C++17, so they should be fine with any C++17 compliant compiler.

The README is a little out of date.

@thachdo
Copy link
Author

thachdo commented Mar 11, 2024

Which system does this help for?

The default g++ version of ubuntu 16.04 is 5.4, which doesn't support c++ 17 as default.
This PR makes the source directly compatible with the compiler of later ubuntu versions (I tested in 18.04).

@edrosten
Copy link
Owner

The README is old, I don't really support 16.04 any more, officially.

Which compiler version do you need the patch for? The main version compiles just fine on GCC 11

@thachdo thachdo closed this Mar 18, 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.

2 participants