From 808dff7d2fa1916833b94b54800ddb6794782c0a Mon Sep 17 00:00:00 2001 From: Lee Clagett Date: Thu, 10 Oct 2024 14:37:03 -0400 Subject: [PATCH] Replace deprecated result_of with decltype --- src/lmdb/database.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lmdb/database.h b/src/lmdb/database.h index 0713476e5..595251c28 100644 --- a/src/lmdb/database.h +++ b/src/lmdb/database.h @@ -111,7 +111,7 @@ namespace lmdb \return The result of calling `f`. */ template - typename std::result_of::type try_write(F f, unsigned attempts = 3) + auto try_write(F f, unsigned attempts = 3) -> decltype(f(std::declval())) { for (unsigned i = 0; i < attempts; ++i) {