[c++] Remove bind2nd
std::bind2nd has been removed in C++17, and libc++ as shipped in LLVM 6 does not contain it anymore, causing compile errors.
Instead of replacing it with std::bind, this fix removes it entirely and goes down the much simpler path of using a generic lambda.
Edited by Steffen Müthing