Add operator != to Item.
To be able to determine if the last item is visited in main().
This commit is contained in:
parent
74369d6ab5
commit
ec8bc6508c
|
@ -38,6 +38,11 @@ using std::istringstream;
|
||||||
using std::string;
|
using std::string;
|
||||||
using std::move;
|
using std::move;
|
||||||
|
|
||||||
|
bool operator !=(const Item &a, const Item &b)
|
||||||
|
{
|
||||||
|
return a.guid != b.guid;
|
||||||
|
}
|
||||||
|
|
||||||
Document::Document(Config &cfg)
|
Document::Document(Config &cfg)
|
||||||
: _cfg{cfg}
|
: _cfg{cfg}
|
||||||
, _profile{cfg.data}
|
, _profile{cfg.data}
|
||||||
|
|
|
@ -42,6 +42,8 @@ struct Item
|
||||||
string guid;
|
string guid;
|
||||||
string link;
|
string link;
|
||||||
string title;
|
string title;
|
||||||
|
|
||||||
|
friend bool operator !=(const Item &a, const Item &b);
|
||||||
};
|
};
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
Loading…
Reference in New Issue
Block a user