compare Tasks directly, not their properties

This commit is contained in:
Dustin J. Mitchell
2021-12-17 01:09:52 +00:00
committed by Tomas Babej
parent ac24ec1387
commit e768e2c100
4 changed files with 9 additions and 2 deletions

View File

@@ -114,6 +114,12 @@ bool Task::operator== (const Task& other)
return true;
}
////////////////////////////////////////////////////////////////////////////////
bool Task::operator!= (const Task& other)
{
return !(*this == other);
}
////////////////////////////////////////////////////////////////////////////////
Task::Task (const std::string& input)
{