Add operator != to Item.

To be able to determine if the last item is visited in main().
This commit is contained in:
tastytea 2019-12-28 07:12:28 +01:00
parent 74369d6ab5
commit ec8bc6508c
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 7 additions and 0 deletions

View File

@ -38,6 +38,11 @@ using std::istringstream;
using std::string;
using std::move;
bool operator !=(const Item &a, const Item &b)
{
return a.guid != b.guid;
}
Document::Document(Config &cfg)
: _cfg{cfg}
, _profile{cfg.data}

View File

@ -42,6 +42,8 @@ struct Item
string guid;
string link;
string title;
friend bool operator !=(const Item &a, const Item &b);
};
/*!