From a9978cb1f6ccf8e9189a98a5dd66a345f2c3d548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 12 Apr 2024 15:59:43 +0200 Subject: Fix compatibility with C++17. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- lanbrowsing/lisa/netmanager.h | 2 +- lanbrowsing/lisa/netscanner.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lanbrowsing/lisa') 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 clients; - struct client_is_done : std::unary_function + struct client_is_done : std::function { 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* nodes); void removeUnnamedHosts(std::list* nodes); - struct is_unnamed_node : std::unary_function + struct is_unnamed_node : std::function { bool operator() (Node& n) { -- cgit v1.2.1