summaryrefslogtreecommitdiffstats
path: root/src/lib/asiolink/tests
diff options
context:
space:
mode:
authorAndrei Pavel <andrei@isc.org>2022-06-30 16:07:19 +0200
committerTomek Mrugalski <tomek@isc.org>2022-07-08 16:06:05 +0200
commit25fc2f54245259c3e5655fcbe5e7a053581fdcba (patch)
tree88194d4ddb1f2c0dbb01966a69a8cf8348422da0 /src/lib/asiolink/tests
parent[#2432] solve warning: unused variable ‘err’ (diff)
downloadkea-25fc2f54245259c3e5655fcbe5e7a053581fdcba.tar.xz
kea-25fc2f54245259c3e5655fcbe5e7a053581fdcba.zip
[#2432] solve warning: std::unary_function is deprecated
Diffstat (limited to 'src/lib/asiolink/tests')
-rw-r--r--src/lib/asiolink/tests/interval_timer_unittest.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/asiolink/tests/interval_timer_unittest.cc b/src/lib/asiolink/tests/interval_timer_unittest.cc
index 5b21b77848..757bba4d42 100644
--- a/src/lib/asiolink/tests/interval_timer_unittest.cc
+++ b/src/lib/asiolink/tests/interval_timer_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-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
@@ -28,7 +28,7 @@ protected:
io_service_(), timer_called_(false), timer_cancel_success_(false)
{}
~IntervalTimerTest() {}
- class TimerCallBack : public std::unary_function<void, void> {
+ class TimerCallBack {
public:
TimerCallBack(IntervalTimerTest* test_obj) : test_obj_(test_obj) {}
void operator()() const {
@@ -39,7 +39,7 @@ protected:
private:
IntervalTimerTest* test_obj_;
};
- class TimerCallBackCounter : public std::unary_function<void, void> {
+ class TimerCallBackCounter {
public:
TimerCallBackCounter(IntervalTimerTest* test_obj) :
test_obj_(test_obj)
@@ -54,7 +54,7 @@ protected:
private:
IntervalTimerTest* test_obj_;
};
- class TimerCallBackCancelDeleter : public std::unary_function<void, void> {
+ class TimerCallBackCancelDeleter {
public:
TimerCallBackCancelDeleter(IntervalTimerTest* test_obj,
IntervalTimer* timer,
@@ -102,7 +102,7 @@ protected:
unsigned int& counter_;
IntervalTimer& itimer_;
};
- class TimerCallBackOverwriter : public std::unary_function<void, void> {
+ class TimerCallBackOverwriter {
public:
TimerCallBackOverwriter(IntervalTimerTest* test_obj,
IntervalTimer& timer)
@@ -128,7 +128,7 @@ protected:
IntervalTimer& timer_;
int count_;
};
- class TimerCallBackAccumulator: public std::unary_function<void, void> {
+ class TimerCallBackAccumulator {
public:
TimerCallBackAccumulator(IntervalTimerTest* test_obj, int &counter) :
test_obj_(test_obj), counter_(counter) {