summaryrefslogtreecommitdiff
path: root/impl
diff options
context:
space:
mode:
Diffstat (limited to 'impl')
-rw-r--r--impl/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/impl/main.cpp b/impl/main.cpp
index 267d11c..6bc3ee0 100644
--- a/impl/main.cpp
+++ b/impl/main.cpp
@@ -164,10 +164,10 @@ void treeToSystem(pANTLR3_BASE_TREE node, EquationSystem<T>& system) {
string varName = (char*) varNode->getText(varNode)->chars;
Variable<T>& var = system.variable(varName);
- vector<Expression<T>*> args;
- args.push_back(&system.constant(-infinity<T>()));
- args.push_back(&treeToExpression(exprNode, system));
- system[var] = &system.maxExpression(args);
+ //vector<Expression<T>*> args;
+ //args.push_back(&system.constant(-infinity<T>()));
+ //args.push_back(&treeToExpression(exprNode, system));
+ system[var] = (MaxExpression<T>*)(&treeToExpression(exprNode, system)); //&system.maxExpression(args);
}
}