Changes in / [542:fc6c7aab4b8d:541:89e29e22d479] in lemon-main
Legend:
- Unmodified
- Added
- Removed
-
lemon/glpk.cc
r542 r540 522 522 cols.clear(); 523 523 } 524 525 void GlpkBase::freeEnv() {526 glp_free_env();527 }528 529 GlpkBase::FreeEnvHelper GlpkBase::freeEnvHelper;530 524 531 525 // GlpkLp members -
lemon/glpk.h
r542 r541 101 101 virtual void _clear(); 102 102 103 private:104 105 static void freeEnv();106 107 struct FreeEnvHelper {108 ~FreeEnvHelper() {109 freeEnv();110 }111 };112 113 static FreeEnvHelper freeEnvHelper;114 115 103 public: 116 104
Note: See TracChangeset
for help on using the changeset viewer.