From 51dd6b2b022ade7a1fc4ec8c404d9b81c7e961f5 Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" 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& system) { string varName = (char*) varNode->getText(varNode)->chars; Variable& var = system.variable(varName); - vector*> args; - args.push_back(&system.constant(-infinity())); - args.push_back(&treeToExpression(exprNode, system)); - system[var] = &system.maxExpression(args); + //vector*> args; + //args.push_back(&system.constant(-infinity())); + //args.push_back(&treeToExpression(exprNode, system)); + system[var] = (MaxExpression*)(&treeToExpression(exprNode, system)); //&system.maxExpression(args); } } -- cgit v1.2.3