From 51dd6b2b022ade7a1fc4ec8c404d9b81c7e961f5 Mon Sep 17 00:00:00 2001
From: "Zancanaro; Carlo" <czan8762@plang3.cs.usyd.edu.au>
Date: Tue, 27 Nov 2012 14:56:56 +1100
Subject: Updated solver stuff. This really should have already been in here...

---
 impl/main.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'impl')

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);
   }
 }
 
-- 
cgit v1.2.3