diff options
author | Carlo Zancanaro <carlo@carlo-laptop> | 2012-05-28 13:00:50 +1000 |
---|---|---|
committer | Carlo Zancanaro <carlo@carlo-laptop> | 2012-05-28 13:00:50 +1000 |
commit | ea05c9c5fa30b8822f618e861d12a09df1f8f017 (patch) | |
tree | cb8717d9773ef77978dc8e1d9093560e3cf26532 /impl/Expression.hpp | |
parent | ee8547cf3c89c51ff10603814e6f745466bc4c79 (diff) |
Fix memory error and x = max(-inf, expr) stuff.
Diffstat (limited to 'impl/Expression.hpp')
-rw-r--r-- | impl/Expression.hpp | 3 |
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; |