ports/math/ogdf/files/patch-src_coin_Clp_ClpModel.cpp
Alexey Dokuchaev 8369734c89 - Resurrect, unbreak, and update to version 2020.02 (Catalpa)
- The build is purely CMake-based now and doesn't use any shell
  or Python helper scripts
- Keep PLIST_SUB+=COIN="" to reduce the churn on the pkg-plist,
  will be cleaned up separately (COIN support is now mandatory)
- Chase 301 Moved Permanently redirect in the WWW line of the
  port description while here
2020-06-24 12:19:03 +00:00

15 lines
852 B
C++

ClpModel.cpp:3848:24: error: reinterpret_cast from 'nullptr_t' to 'const char *' is not allowed
reinterpret_cast<const char*> (NULL) /*integrality*/,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- src/coin/Clp/ClpModel.cpp.orig 2015-05-29 15:36:41 UTC
+++ src/coin/Clp/ClpModel.cpp
@@ -3619,7 +3619,7 @@ ClpModel::writeMps(const char *filename,
writer.setMpsData(*(matrix_->getPackedMatrix()), COIN_DBL_MAX,
getColLower(), getColUpper(),
objective,
- reinterpret_cast<const char*> (NULL) /*integrality*/,
+ static_cast<const char*> (NULL) /*integrality*/,
getRowLower(), getRowUpper(),
columnNames, rowNames);
// Pass in array saying if each variable integer