Closed SpaceIm closed 1 year ago
Osi relies in 2 files on std::bind2nd which has been deprecated in C++11 and removed in C++17: https://en.cppreference.com/w/cpp/utility/functional/bind12
std::bind2nd
When you compile with C++17 or any more recent standard, obviously it fails:
clang++ -DHAVE_CONFIG_H -I. -I/Users/jenkins/w/prod-v2/BuildSingleReference/p/t/coin-7e1b1ca41dd84/b/src/Osi/src/OsiCommonTest -I../../src/Osi -I/Users/jenkins/w/prod-v2/BuildSingleReference/p/t/coin-7e1b1ca41dd84/b/src/Osi/src/OsiCommonTest/../Osi -I/Users/jenkins/w/prod-v2/BuildSingleReference/p/coin-0d0a7534c642e/p/include -I/Users/jenkins/w/prod-v2/BuildSingleReference/p/coin-0d0a7534c642e/p/include/coin -I/Users/jenkins/w/prod-v2/BuildSingleReference/p/bzip2d4d569d3b1100/p/include -I/Users/jenkins/w/prod-v2/BuildSingleReference/p/zlibe48b509ceab25/p/include -DNDEBUG -stdlib=libc++ -std=gnu++17 -m64 -fPIC -O3 -DOSI_BUILD -MT OsiSolverInterfaceTest.lo -MD -MP -MF .deps/OsiSolverInterfaceTest.Tpo -c /Users/jenkins/w/prod-v2/BuildSingleReference/p/t/coin-7e1b1ca41dd84/b/src/Osi/src/OsiCommonTest/OsiSolverInterfaceTest.cpp -o OsiSolverInterfaceTest.o /Users/jenkins/w/prod-v2/BuildSingleReference/p/t/coin-7e1b1ca41dd84/b/src/Osi/src/OsiCommonTest/OsiSolverInterfaceTest.cpp:1321:10: error: no member named 'bind2nd' in namespace 'std' std::bind2nd(std::plus< double >(), 0.15)); ~~~~~^ 1 error generated. make[2]: *** [OsiSolverInterfaceTest.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1
Osi relies in 2 files on
std::bind2nd
which has been deprecated in C++11 and removed in C++17: https://en.cppreference.com/w/cpp/utility/functional/bind12When you compile with C++17 or any more recent standard, obviously it fails: