Skip to content

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