summaryrefslogtreecommitdiff
path: root/impl/Expression.hpp
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@carlo-laptop>2012-05-17 01:58:42 +1000
committerCarlo Zancanaro <carlo@carlo-laptop>2012-05-17 01:58:42 +1000
commit12b86dc91316a5591c22160a9312e62c77a65b2f (patch)
treec1689f6d50fc529d9b0dcd38a021a15109c5867d /impl/Expression.hpp
parentfcecd0e7dc0bf103986c02e2f29fb518cd5571c5 (diff)
Fix a segfault and a stupid parser decision.
Diffstat (limited to 'impl/Expression.hpp')
-rw-r--r--impl/Expression.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/impl/Expression.hpp b/impl/Expression.hpp
index 913bf7a..5cf82d4 100644
--- a/impl/Expression.hpp
+++ b/impl/Expression.hpp
@@ -1,7 +1,7 @@
#ifndef EXPRESSION_HPP
#define EXPRESSION_HPP
-//#include <pair>
+#include <iostream>
#include "VariableAssignment.hpp"
#include "Operator.hpp"
@@ -50,7 +50,7 @@ struct MaxExpression : public Expression<T> {
if (value > best.first)
best = std::pair<T, unsigned int>(value, i);
}
- std::cout << "Best strategy: (" << best.first << ", " << best.second << ")" << std::endl;
+ std::cerr << "Best strategy: (" << best.first << ", " << best.second << ")" << std::endl;
return best;
}
private: