From 5f240b632abf17f8bb762c5e6f6f271dadb89467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Wed, 17 May 2017 14:29:00 +0200 Subject: [PATCH] Added default constructors to AST structs. --- lib/pddlparse/include/pddlparse/AST.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/pddlparse/include/pddlparse/AST.h b/lib/pddlparse/include/pddlparse/AST.h index b18430f..31c62f1 100644 --- a/lib/pddlparse/include/pddlparse/AST.h +++ b/lib/pddlparse/include/pddlparse/AST.h @@ -429,6 +429,8 @@ struct When: public Binary, ArgumentLeft, Argu struct Action { + Action() = default; + Action(const Action &other) = delete; Action &operator=(const Action &&other) = delete; Action(Action &&other) = default; @@ -445,6 +447,8 @@ struct Action struct Domain { + Domain() = default; + Domain(const Domain &other) = delete; Domain &operator=(const Domain &&other) = delete; Domain(Domain &&other) = default; @@ -462,6 +466,8 @@ struct Domain struct InitialState { + InitialState() = default; + InitialState(const InitialState &other) = delete; InitialState &operator=(const InitialState &&other) = delete; InitialState(InitialState &&other) = default; @@ -474,6 +480,8 @@ struct InitialState struct Problem { + Problem() = default; + Problem(const Problem &other) = delete; Problem &operator=(const Problem &&other) = delete; Problem(Problem &&other) = default; @@ -519,6 +527,8 @@ enum class Requirement struct Description { + Description() = default; + Description(const Description &other) = delete; Description &operator=(const Description &&other) = delete; Description(Description &&other) = default;