Replace bind1st and bind2nd by lambdas
Created by: masterleinad
@trilinos/anasazi @trilinos/tpetra
Description
Replace bind1st and bind2nd by lambda functions.
Motivation and Context
As of C++11 std::bind1st
and std::bind2nd
are deprecated and removed in the C++17 standard.
In particular, libc++
doesn't contain them anymore if compiling with std=c++17
. They can be replaced by simple lambdas.
How Has This Been Tested?
I compiled Trilinos.
Checklist
-
My commit messages mention the appropriate GitHub issue numbers. -
My code follows the code style of the affected package(s). -
My change requires a change to the documentation. -
I have updated the documentation accordingly. -
I have read the code contribution guidelines for this project. -
I have added tests to cover my changes. -
All new and existing tests passed. -
No new compiler warnings were introduced. -
These changes break backwards compatibility.
Additional Information
This PR requires C++11