From ec60f73a790ea10a592eb5f4bb96a38f3598711a Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sun, 20 Mar 2022 14:39:31 +0100 Subject: Drop unneeded usage of deprecated std::binary_function The code isn't using any of the member types this template provides, so we can just drop it from the code without any practical effect. Reported-By: gcc -Wdeprecated-declarations Gbp-Dch: Ignore --- ftparchive/apt-ftparchive.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ftparchive/apt-ftparchive.cc b/ftparchive/apt-ftparchive.cc index bbba0834b..0f6587281 100644 --- a/ftparchive/apt-ftparchive.cc +++ b/ftparchive/apt-ftparchive.cc @@ -116,19 +116,19 @@ struct PackageMap bool SrcDone; time_t ContentsMTime; - struct ContentsCompare : public binary_function + struct ContentsCompare { inline bool operator() (const PackageMap &x,const PackageMap &y) {return x.ContentsMTime < y.ContentsMTime;}; }; - struct DBCompare : public binary_function + struct DBCompare { inline bool operator() (const PackageMap &x,const PackageMap &y) {return x.BinCacheDB < y.BinCacheDB;}; }; - struct SrcDBCompare : public binary_function + struct SrcDBCompare { inline bool operator() (const PackageMap &x,const PackageMap &y) {return x.SrcCacheDB < y.SrcCacheDB;}; -- cgit v1.2.3-70-g09d2