summaryrefslogtreecommitdiff
path: root/impl/Expression.hpp
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@carlo-laptop>2012-05-28 13:00:50 +1000
committerCarlo Zancanaro <carlo@carlo-laptop>2012-05-28 13:00:50 +1000
commitea05c9c5fa30b8822f618e861d12a09df1f8f017 (patch)
treecb8717d9773ef77978dc8e1d9093560e3cf26532 /impl/Expression.hpp
parentee8547cf3c89c51ff10603814e6f745466bc4c79 (diff)
Fix memory error and x = max(-inf, expr) stuff.
Diffstat (limited to 'impl/Expression.hpp')
-rw-r--r--impl/Expression.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/impl/Expression.hpp b/impl/Expression.hpp
index 5cf82d4..4798e60 100644
--- a/impl/Expression.hpp
+++ b/impl/Expression.hpp
@@ -22,6 +22,9 @@ struct Expression {
virtual T operator() (const VariableAssignment<T>& assignment) const {
return (*_operator)(_arguments, assignment);
}
+ virtual T operator() (const VariableAssignment<T>& assignment, VariableSet<T>* visited) const {
+ return (*_operator)(_arguments, assignment, visited);
+ }
protected:
Operator<T>* _operator;
std::vector< Expression<T>* > _arguments;