Skip to content

Commit

Permalink
Drop unneeded usage of deprecated std::binary_function
Browse files Browse the repository at this point in the history
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
  • Loading branch information
DonKult committed Jan 29, 2023
1 parent 2b3cda8 commit ec60f73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ftparchive/apt-ftparchive.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,19 @@ struct PackageMap
bool SrcDone;
time_t ContentsMTime;

struct ContentsCompare : public binary_function<PackageMap,PackageMap,bool>
struct ContentsCompare
{
inline bool operator() (const PackageMap &x,const PackageMap &y)
{return x.ContentsMTime < y.ContentsMTime;};
};

struct DBCompare : public binary_function<PackageMap,PackageMap,bool>
struct DBCompare
{
inline bool operator() (const PackageMap &x,const PackageMap &y)
{return x.BinCacheDB < y.BinCacheDB;};
};

struct SrcDBCompare : public binary_function<PackageMap,PackageMap,bool>
struct SrcDBCompare
{
inline bool operator() (const PackageMap &x,const PackageMap &y)
{return x.SrcCacheDB < y.SrcCacheDB;};
Expand Down

0 comments on commit ec60f73

Please sign in to comment.