Skip to content

Commit

Permalink
Introduced unused template parameter to circumvent compilation proble…
Browse files Browse the repository at this point in the history
…m in gcc
  • Loading branch information
mapgccv committed Nov 14, 2024
1 parent aa6ca1b commit f08545a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/mp/flat/constr_2_expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ class Constraints2Expr {

/// Handle logical expressions in an IfThen
/// @return whether to remove the original \a con.
template <>
template <typename fake> // to avoid "specialization" not declared at namespace
// with certain versions of gcc
bool HandleLogicalArgs(const IfThenConstraint& con, int ) {
MarkVarIfLogical_(con.GetArguments()[1]); // then part
MarkVarIfLogical_(con.GetArguments()[2]); // else part
Expand Down

0 comments on commit f08545a

Please sign in to comment.