Fix compatibility with C++17.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/76/head
Slávek Banko 7 months ago
parent dba94977c0
commit a9978cb1f6
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -77,7 +77,7 @@ class NetManager:public NetScanner
int m_increasedRefreshTime;
int m_broadcastAddress;
std::list<Client> clients;
struct client_is_done : std::unary_function<Client, bool>
struct client_is_done : std::function<bool(Client)>
{
bool operator() (Client& c)
{

@ -88,7 +88,7 @@ class NetScanner
int hostAlreadyInList(int ip, std::list<Node>* nodes);
void removeUnnamedHosts(std::list<Node>* nodes);
struct is_unnamed_node : std::unary_function<Node&, bool>
struct is_unnamed_node : std::function<bool(Node&)>
{
bool operator() (Node& n)
{

Loading…
Cancel
Save