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:
committed by
Tomek Mrugalski
parent
25fc2f5424
commit
7f2cc312ff
@@ -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(),
|
||||
|
@@ -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(),
|
||||
|
Reference in New Issue
Block a user