]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2432] solve warning: std::binary_function is deprecated
authorAndrei Pavel <andrei@isc.org>
Thu, 30 Jun 2022 14:07:26 +0000 (17:07 +0300)
committerTomek Mrugalski <tomek@isc.org>
Fri, 8 Jul 2022 14:06:05 +0000 (16:06 +0200)
src/lib/dns/rrparamregistry-placeholder.cc
src/lib/dns/rrparamregistry.cc

index 455c117d69922bbe477307208c23ca0596fff5b4..40214604c51836a0ddcddd0f6304db8f44c20ede 100644 (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(),
index 9942b4cdd78fcaab24b675d6c3f63b8ed2f9b4ea..a8368b7a7aa69061c737b071ac9cb92ca98f3aec 100644 (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(),