diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2024-04-12 15:59:43 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2024-04-12 15:59:43 +0200 |
commit | a9978cb1f6ccf8e9189a98a5dd66a345f2c3d548 (patch) | |
tree | 3f81b332c27efeeb9cb616ac1b05c1fa96703879 | |
parent | dba94977c0f5cf4a1a91e05431012401da3ada3b (diff) | |
download | tdenetwork-a9978cb1f6ccf8e9189a98a5dd66a345f2c3d548.tar.gz tdenetwork-a9978cb1f6ccf8e9189a98a5dd66a345f2c3d548.zip |
Fix compatibility with C++17.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r-- | lanbrowsing/lisa/netmanager.h | 2 | ||||
-rw-r--r-- | lanbrowsing/lisa/netscanner.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lanbrowsing/lisa/netmanager.h b/lanbrowsing/lisa/netmanager.h index dee5fb27..0a56e03f 100644 --- a/lanbrowsing/lisa/netmanager.h +++ b/lanbrowsing/lisa/netmanager.h @@ -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) { diff --git a/lanbrowsing/lisa/netscanner.h b/lanbrowsing/lisa/netscanner.h index a93bf3ee..7a973ab5 100644 --- a/lanbrowsing/lisa/netscanner.h +++ b/lanbrowsing/lisa/netscanner.h @@ -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) { |