summaryrefslogtreecommitdiff
path: root/impl/Expression.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'impl/Expression.hpp')
-rw-r--r--impl/Expression.hpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/impl/Expression.hpp b/impl/Expression.hpp
index 7b157c2..668f4fd 100644
--- a/impl/Expression.hpp
+++ b/impl/Expression.hpp
@@ -5,17 +5,14 @@
#include "VariableAssignment.hpp"
#include "Operator.hpp"
+int ExpressionCount;
+
template<typename T>
struct Expression {
Expression(Operator<T>* op, const std::vector< Expression<T>* >& args)
: _operator(op), _arguments(args) { }
virtual ~Expression() {
- /*delete _operator;
- for (typename std::vector< Expression<T>* >::iterator it = _arguments.begin();
- it != _arguments.end();
- ++it) {
- delete *it;
- }*/
+ delete _operator;
}
virtual T operator() (const VariableAssignment<T>& assignment) const {
return (*_operator)(_arguments, assignment);