2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#2432] solve warning: std::binary_function is deprecated

This commit is contained in:
Andrei Pavel
2022-06-30 17:07:26 +03:00
committed by Tomek Mrugalski
parent 25fc2f5424
commit 7f2cc312ff
2 changed files with 4 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
// Copyright (C) 2010-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2010-2022 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -47,9 +47,7 @@ CICharLess(char c1, char c2) {
tolower(static_cast<unsigned char>(c2)));
}
struct CIStringLess :
public binary_function<string, string, bool>
{
struct CIStringLess {
bool operator()(const string& s1, const string& s2) const
{
return (lexicographical_compare(s1.begin(), s1.end(),

View File

@@ -5,7 +5,7 @@
///////////////
///////////////
// Copyright (C) 2010-2021 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2010-2022 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -54,9 +54,7 @@ CICharLess(char c1, char c2) {
tolower(static_cast<unsigned char>(c2)));
}
struct CIStringLess :
public binary_function<string, string, bool>
{
struct CIStringLess {
bool operator()(const string& s1, const string& s2) const
{
return (lexicographical_compare(s1.begin(), s1.end(),