Skip to content

Replace deprecated std::bind2nd

Erik Quaeghebeur requested to merge equaeghe/trojita:remove-bind2nd into master

std::bind2nd has been deprecated since C++11 and removed in C++17. The standard way to replace it in code is to use std:bind with std::placeholders::_1 (see, e.g., https://stackoverflow.com/a/32739105), which is what is done in this commit. This makes the code future-proof and removes a few warnings when compiling.

Merge request reports