mdbx-test: remove std::unary_function<> for C++17.

This commit is contained in:
Leonid Yuriev 2019-09-01 14:04:02 +03:00
parent 5a87faf9af
commit d974ca322b
2 changed files with 4 additions and 4 deletions

View File

@ -93,7 +93,7 @@ struct result {
//-----------------------------------------------------------------------------
struct buffer_deleter : public std::unary_function<void, result *> {
struct buffer_deleter /* : public std::unary_function<void, result *> */ {
void operator()(result *buffer) const { free(buffer); }
};

View File

@ -55,11 +55,11 @@ extern bool progress_indicator;
//-----------------------------------------------------------------------------
struct db_deleter : public std::unary_function<void, MDBX_env *> {
struct db_deleter /* : public std::unary_function<void, MDBX_env *> */ {
void operator()(MDBX_env *env) const { mdbx_env_close(env); }
};
struct txn_deleter : public std::unary_function<void, MDBX_txn *> {
struct txn_deleter /* : public std::unary_function<void, MDBX_txn *> */ {
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<void, MDBX_txn *> {
}
};
struct cursor_deleter : public std::unary_function<void, MDBX_cursor *> {
struct cursor_deleter /* : public std::unary_function<void, MDBX_cursor *> */ {
void operator()(MDBX_cursor *cursor) const { mdbx_cursor_close(cursor); }
};