diff options
author | Carlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au> | 2012-09-20 15:19:49 +1000 |
---|---|---|
committer | Carlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au> | 2012-09-20 15:19:49 +1000 |
commit | bb9a899b7c45b830c6b70e2811130a41ebb31ee5 (patch) | |
tree | 070ca77682bf7e3b72a94e78fbe0fcf337bdd98a /impl/EquationSystem.hpp | |
parent | 3d206f03985b50beacae843d880bccdc91a9f424 (diff) |
Remove exceptions and C++11 features for LLVM.
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"; } } |