summaryrefslogtreecommitdiffstats
path: root/external/coinmp/bind2nd.patch.1
blob: 6ef10a03e1027b8de6bcd09fd78e6f13f6f10787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/Osi/src/OsiCommonTest/OsiSolverInterfaceTest.cpp
+++ b/Osi/src/OsiCommonTest/OsiSolverInterfaceTest.cpp
@@ -1313,8 +1313,8 @@
   int rows_to_delete_arr[] = { 0 } ;
   si->deleteRows(1,rows_to_delete_arr) ;
 
-  std::transform(objective,objective+4,objective,
-		 std::bind2nd(std::plus<double>(),0.15)) ;
+  for (int i = 0; i != 4; ++i)
+    objective[i] += 0.15;
   si->setObjective(objective) ;
   si->resolve() ;
   OSIUNITTEST_ASSERT_ERROR(si->isProvenOptimal(),          return false, *si, "test16SebastianNowozin second resolve");