combine functions fixes

This commit is contained in:
ProgramSnail 2023-08-02 13:10:16 +03:00
parent 5e70f0015f
commit 4714a05467
5 changed files with 117 additions and 44 deletions

View file

@ -115,6 +115,16 @@ public:
value_ += name;
}
//
bool operator==(const Identifier &other_identifier) const {
return type_ == other_identifier.type_ && value_ == other_identifier.value_;
}
bool operator!=(const Identifier &other_identifier) const {
return !(*this == other_identifier);
}
private:
IdentifierType type_;
std::string value_;