Equality operators for ModelCheckerSettings and ImportRemapper

This commit is contained in:
Kamil Śliwak
2021-07-06 17:17:18 +02:00
parent d781955b26
commit 7d16c7b127
2 changed files with 28 additions and 0 deletions
+9
View File
@@ -35,6 +35,15 @@ class ImportRemapper
public:
struct Remapping
{
bool operator!=(Remapping const& _other) const noexcept { return !(*this == _other); }
bool operator==(Remapping const& _other) const noexcept
{
return
context == _other.context &&
prefix == _other.prefix &&
target == _other.target;
}
std::string context;
std::string prefix;
std::string target;