mirror of
https://git.freebsd.org/ports.git
synced 2025-06-19 03:30:32 -04:00
ClpModel.cpp:3848:24: error: reinterpret_cast from 'nullptr_t' to 'const char *' is not allowed reinterpret_cast<const char*> (NULL) /*integrality*/, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OsiClpSolverInterface.cpp:1451:50: error: reinterpret_cast from 'nullptr_t' to 'int *' is not allowed messagesPointer->setDetailMessages(100,10000,reinterpret_cast<int *> (NULL)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from CglLandPSimplex.cpp:11: In file included from ./CglLandPSimplex.hpp:31: ./CglLandPUtils.hpp:88:25: error: reinterpret_cast from 'nullptr_t' to 'OsiRowCut *' is not allowed cuts_.resize(i, reinterpret_cast<OsiRowCut *> (NULL)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CbcModel.cpp:5322:41: error: reinterpret_cast from 'nullptr_t' to 'double *' is not allowed clpSolver->setFakeObjective(reinterpret_cast<double *> (NULL)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reported by: antoine (via bug 224669)
15 lines
734 B
C++
15 lines
734 B
C++
CbcModel.cpp:5322:41: error: reinterpret_cast from 'nullptr_t' to 'double *' is not allowed
|
|
clpSolver->setFakeObjective(reinterpret_cast<double *> (NULL));
|
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
--- Cbc/src/CbcModel.cpp.orig 2015-06-04 17:10:17 UTC
|
|
+++ Cbc/src/CbcModel.cpp
|
|
@@ -5319,7 +5319,7 @@ void CbcModel::branchAndBound(int doStatistics)
|
|
OsiClpSolverInterface * clpSolver
|
|
= dynamic_cast<OsiClpSolverInterface *> (solver_);
|
|
if (clpSolver)
|
|
- clpSolver->setFakeObjective(reinterpret_cast<double *> (NULL));
|
|
+ clpSolver->setFakeObjective(static_cast<double *> (NULL));
|
|
}
|
|
#endif
|
|
moreSpecialOptions_ = saveMoreSpecialOptions;
|