mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:14:14 +08:00
mdbx-test: remove std::unary_function<>
for C++17.
This commit is contained in:
parent
5a87faf9af
commit
d974ca322b
@ -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); }
|
||||
};
|
||||
|
||||
|
@ -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); }
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user