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

Convert deprecated call to ptr_fun to lambda #83

Closed
wants to merge 2 commits into from

Conversation

AzP
Copy link
Contributor

@AzP AzP commented Mar 1, 2023

ptr_fun has been deprecated in C++11 and removed in C++17, so the code currently does not build with GCC 12.2.1.

This PR replaces the use of ptr_fun with a local lambda.

See:
https://en.cppreference.com/w/cpp/utility/functional/ptr_fun

And the same solution here, that is applied in this PR:
https://stackoverflow.com/questions/44973435/stdptr-fun-replacement-for-c17

Fixes bug #82

These are:
strict-prototypes, missing-prototypes, old-style-definition
@AzP
Copy link
Contributor Author

AzP commented Mar 3, 2023

Dropping PR since it accidentally included 2 commits.

@AzP AzP closed this Mar 3, 2023
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.

None yet

1 participant