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 #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AzP
Copy link
Contributor

@AzP AzP commented Mar 3, 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 #82

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.

Compilation error on GCC 12.2.1, ptr_fun is deprecated
1 participant