Rework evaluation to use shared pointers, fix bugs
This commit is contained in:
@@ -29,8 +29,8 @@ public:
|
||||
return _value;
|
||||
}
|
||||
|
||||
EvalValue* Clone() final{
|
||||
return new StringEvalValue(_value);
|
||||
shared_ptr<EvalValue> Clone() final{
|
||||
return make_shared<StringEvalValue>(_value);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user