summaryrefslogtreecommitdiffstats
path: root/lanbrowsing
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2024-04-12 15:59:43 +0200
committerSlávek Banko <[email protected]>2024-04-12 16:16:55 +0200
commit6d93398d01f28b9047e9b9559a7075da36f3a36f (patch)
tree0ec40496f7bfa8eb78fbe1dd7153a63234366d49 /lanbrowsing
parente8c580931238437743f90556b941980a54272184 (diff)
downloadtdenetwork-6d93398d01f28b9047e9b9559a7075da36f3a36f.tar.gz
tdenetwork-6d93398d01f28b9047e9b9559a7075da36f3a36f.zip
Fix compatibility with C++17.
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit a9978cb1f6ccf8e9189a98a5dd66a345f2c3d548)
Diffstat (limited to 'lanbrowsing')
-rw-r--r--lanbrowsing/lisa/netmanager.h2
-rw-r--r--lanbrowsing/lisa/netscanner.h2
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)
{