Merge pull request #3536 from ab9rf/c2666-fix

fix an ambiguity in def'n of operator==
develop
Myk 2023-07-07 15:44:04 -07:00 committed by GitHub
commit c23ba818c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

@ -106,10 +106,14 @@ namespace DFHack
StateChangeScript(state_change_event event, std::string path, bool save_specific = false)
:event(event), path(path), save_specific(save_specific)
{ }
bool operator==(const StateChangeScript& other)
bool const operator==(const StateChangeScript& other)
{
return event == other.event && path == other.path && save_specific == other.save_specific;
}
bool const operator!=(const StateChangeScript& other)
{
return !(operator==(other));
}
};
// Core is a singleton. Why? Because it is closely tied to SDL calls. It tracks the global state of DF.