Skip to content

Commit

Permalink
Remove overload that sometimes produces ambiguity
Browse files Browse the repository at this point in the history
Because variables are convertible to linear expressions.
  • Loading branch information
arximboldi committed Feb 13, 2015
1 parent 8da0baf commit a500557
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions rhea/linear_equation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,6 @@ class linear_equation : public linear_constraint
virtual bool is_satisfied() const { return expr_.evaluate() == 0.0; }
};

//--------------------------------------------------------------------------

inline linear_equation operator==(linear_expression lhs, const variable& rhs)
{
return lhs -= rhs;
}

inline linear_equation operator==(linear_expression lhs,
const linear_expression& rhs)
{
Expand Down

0 comments on commit a500557

Please sign in to comment.