summaryrefslogtreecommitdiff
path: root/impl/Expression.hpp
diff options
context:
space:
mode:
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;