add equality operator to Action::Quantity

This commit is contained in:
Arne Morten Kvarving
2019-12-17 15:52:21 +01:00
parent e7e2458951
commit 65b958cbcd

View File

@@ -41,6 +41,11 @@ public:
void add_arg(const std::string& arg);
std::string quantity;
std::vector<std::string> args;
bool operator==(const Quantity& data) const {
return quantity == data.quantity &&
args == data.args;
}
};