Changeset 1950:a1a6f5b788bd in lemon-0.x
- Timestamp:
- 02/03/06 13:20:10 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2525
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/lp_cplex.cc
r1895 r1950 84 84 void LpCplex::_getColName(int col, std::string &name) 85 85 { 86 ///\bug Unimplemented 86 ///\bug Untested 87 int storespace; 88 CPXgetcolname(env, lp, 0, 0, 0, &storespace, col, col); 89 90 storespace *= -1; 91 char buf[storespace]; 92 char *names[1]; 93 int dontcare; 94 ///\bug return code unchecked for error 95 CPXgetcolname(env, lp, names, buf, storespace, &dontcare, col, col); 96 name = names[0]; 87 97 } 88 98 … … 90 100 { 91 101 ///\bug Untested 92 CPXchgcolname(env, lp, 1, &col, const_cast<char*>(name.c_str())); 102 char *names[1]; 103 names[0] = const_cast<char*>(name.c_str()); 104 ///\bug return code unchecked for error 105 CPXchgcolname(env, lp, 1, &col, names); 93 106 } 94 107
Note: See TracChangeset
for help on using the changeset viewer.