d45773d7cc
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
764 B
C++
15 lines
764 B
C++
OsiClpSolverInterface.cpp:1451:50: error: reinterpret_cast from 'nullptr_t' to 'int *' is not allowed
|
|
messagesPointer->setDetailMessages(100,10000,reinterpret_cast<int *> (NULL));
|
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
--- Clp/src/OsiClp/OsiClpSolverInterface.cpp.orig 2015-07-14 13:16:13 UTC
|
|
+++ Clp/src/OsiClp/OsiClpSolverInterface.cpp
|
|
@@ -1448,7 +1448,7 @@ OsiClpSolverInterface::setupForRepeatedUse(int senseOf
|
|
if (stopPrinting) {
|
|
CoinMessages * messagesPointer = modelPtr_->messagesPointer();
|
|
// won't even build messages
|
|
- messagesPointer->setDetailMessages(100,10000,reinterpret_cast<int *> (NULL));
|
|
+ messagesPointer->setDetailMessages(100,10000,static_cast<int *> (NULL));
|
|
}
|
|
#endif
|
|
}
|