From d974ca322ba89e459470949b300b8b85ece5c69b Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Sun, 1 Sep 2019 14:04:02 +0300 Subject: [PATCH] mdbx-test: remove `std::unary_function<>` for C++17. --- test/keygen.h | 2 +- test/test.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/keygen.h b/test/keygen.h index d0299e1e..9852c310 100644 --- a/test/keygen.h +++ b/test/keygen.h @@ -93,7 +93,7 @@ struct result { //----------------------------------------------------------------------------- -struct buffer_deleter : public std::unary_function { +struct buffer_deleter /* : public std::unary_function */ { void operator()(result *buffer) const { free(buffer); } }; diff --git a/test/test.h b/test/test.h index fb5ad4ee..53a2e36a 100644 --- a/test/test.h +++ b/test/test.h @@ -55,11 +55,11 @@ extern bool progress_indicator; //----------------------------------------------------------------------------- -struct db_deleter : public std::unary_function { +struct db_deleter /* : public std::unary_function */ { void operator()(MDBX_env *env) const { mdbx_env_close(env); } }; -struct txn_deleter : public std::unary_function { +struct txn_deleter /* : public std::unary_function */ { void operator()(MDBX_txn *txn) const { int rc = mdbx_txn_abort(txn); if (rc) @@ -67,7 +67,7 @@ struct txn_deleter : public std::unary_function { } }; -struct cursor_deleter : public std::unary_function { +struct cursor_deleter /* : public std::unary_function */ { void operator()(MDBX_cursor *cursor) const { mdbx_cursor_close(cursor); } };