From ab599e34e847d8db1560b8c5809e02be62060c58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 12 Apr 2024 13:26:23 +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 --- kab/addressbook.cpp | 2 +- kab/qconfigDB.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'kab') diff --git a/kab/addressbook.cpp b/kab/addressbook.cpp index 1a6655266..0cf8b9307 100644 --- a/kab/addressbook.cpp +++ b/kab/addressbook.cpp @@ -100,7 +100,7 @@ const int AddressBook::Entry::NoOfFields =sizeof(AddressBook::Entry::Fields)/sizeof(AddressBook::Entry::Fields[0]); struct QStringLess - : public binary_function + : public std::function { /** The function operator, inline. */ bool operator()(const TQString& x, const TQString& y) const diff --git a/kab/qconfigDB.h b/kab/qconfigDB.h index 94a211527..f74e5886c 100644 --- a/kab/qconfigDB.h +++ b/kab/qconfigDB.h @@ -19,6 +19,7 @@ namespace std { } using namespace std; +#include #include #include #include @@ -43,7 +44,7 @@ class TQTextStream; * it is called with. */ struct QCStringLess - : public binary_function + : public std::function { /** * The function operator, inline. -- cgit v1.2.1