add serialization template to ActionAST

This commit is contained in:
Arne Morten Kvarving
2020-03-18 09:10:46 +01:00
parent 8ad0111ded
commit 9cd1403b33

View File

@@ -50,6 +50,13 @@ public:
std::shared_ptr<ASTNode> getCondition() const;
bool operator==(const AST& data) const;
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(condition);
}
private:
/*
The use of a pointer here is to be able to create this class with only a