Retained move/copy semantics; removed const qualifier from Expression's members name (of type std::string) and arguments (of type std::vector<Expression>)

This commit is contained in:
Bhargava Shastry 2018-10-17 16:46:18 +02:00
parent 546b08c158
commit 67fd3ca4a7

View File

@ -62,6 +62,8 @@ public:
Expression(Expression const&) = default; Expression(Expression const&) = default;
Expression(Expression&&) = default; Expression(Expression&&) = default;
Expression& operator=(Expression const&) = default;
Expression& operator=(Expression&&) = default;
bool hasCorrectArity() const bool hasCorrectArity() const
{ {
@ -169,8 +171,8 @@ public:
} }
} }
std::string const name; std::string name;
std::vector<Expression> const arguments; std::vector<Expression> arguments;
Sort sort; Sort sort;
private: private: