aboutsummaryrefslogtreecommitdiff
path: root/math/coinmp/files/patch-Clp_src_ClpModel.cpp
blob: d6fd809c72ede72ddd6651843247ca7ac5937bfe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ClpModel.cpp:3848:24: error: reinterpret_cast from 'nullptr_t' to 'const char *' is not allowed
                       reinterpret_cast<const char*> (NULL) /*integrality*/,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--- Clp/src/ClpModel.cpp.orig	2015-03-19 08:09:18 UTC
+++ Clp/src/ClpModel.cpp
@@ -3845,7 +3845,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