Skip to content

Commit ac5c50f

Browse files
committed
fix ubuntu build in dio
Signed-off-by: Lev Nachmanson <[email protected]>
1 parent c1ece49 commit ac5c50f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/math/lp/dioph_eq.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,6 @@ namespace lp {
12911291
print_entry(i, tout););
12921292
CTRACE(
12931293
"dioph_eq", !entry_invariant(i), tout << "invariant delta:"; {
1294-
const auto& e = m_entries[i];
12951294
print_term_o(get_term_from_entry(ei) -
12961295
fix_vars(open_ml(m_l_matrix.m_rows[ei])),
12971296
tout)
@@ -1312,7 +1311,6 @@ namespace lp {
13121311
}
13131312

13141313
bool entry_invariant(unsigned ei) const {
1315-
const auto& e = m_entries[ei];
13161314
bool ret =
13171315
term_to_lar_solver(remove_fresh_vars(get_term_from_entry(ei))) ==
13181316
fix_vars(open_ml(m_l_matrix.m_rows[ei]));

src/math/lp/lp_core_solver_base.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,8 @@ class lp_core_solver_base {
516516
}
517517

518518

519-
template <typename T>
520-
void swap(T &v, unsigned i, unsigned j) noexcept {
519+
template <typename R>
520+
void swap(R &v, unsigned i, unsigned j) noexcept {
521521
auto t = v[i];
522522
v[i] = v[j];
523523
v[j] = t;

0 commit comments

Comments
 (0)