diff options
Diffstat (limited to 'impl/EquationSystem.hpp')
-rw-r--r-- | impl/EquationSystem.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/impl/EquationSystem.hpp b/impl/EquationSystem.hpp index 4c55bd7..c0734aa 100644 --- a/impl/EquationSystem.hpp +++ b/impl/EquationSystem.hpp @@ -97,14 +97,16 @@ struct EquationSystem { Variable<Domain>* varFromExpr(const Expression<Domain>& expr) const { if (_expr_to_var) { // we've indexed: - auto* maxExpr = dynamic_cast<const MaxExpression<Domain>*>(&expr); + const MaxExpression<Domain>* maxExpr = dynamic_cast<const MaxExpression<Domain>*>(&expr); if (maxExpr) { return (*_expr_to_var)[*maxExpr]; } else { return NULL; } } else { - throw "Must index max expressions before attempting lookup"; + std::cout << "throw exception" << *(char*)NULL; + return NULL; + //throw "Must index max expressions before attempting lookup"; } } |