Skip to content

Commit 814ecb0

Browse files
committed
remove instantiation of SPxLPBase<Rational>
- to avoid that it is instantiated every time the header gets included - this would fix scip#3954, where the soplex headers are included by two SoPlex interfaces - remove empty spxlpbase_rational.cpp - it was already no longer compiled
1 parent e45a724 commit 814ecb0

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ build system:
2525

2626
fixed bugs:
2727
- extend memory counters to size_t to avoid segmentation faults for large-scale problems
28+
- removed instantiation of SPxLPBase<Rational> class template from header file, to avoid problems when SoPlex headers are compiled into several object files of a library
2829

2930
code quality:
3031
- avoid deprecated implicit copy constructor for classes SPxException, SLinSolver, and SLinSolverRational

src/soplex/spxlpbase_rational.cpp

Whitespace-only changes.

src/soplex/spxlpbase_rational.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2464,9 +2464,4 @@ void SPxLPBase<Rational>::buildDualProblem(SPxLPBase<Rational>& dualLP, SPxRowId
24642464
SPX_MSG_ERROR(std::cerr << "Method buildDualProblem() not implemented for Rational\n");
24652465
}
24662466

2467-
2468-
// ---------------------------------------------------------------------------------------------------------------------
2469-
// Explicit instantiation
2470-
// ---------------------------------------------------------------------------------------------------------------------
2471-
template class SPxLPBase < Rational >;
24722467
} // namespace soplex

0 commit comments

Comments
 (0)