From b6f785316f257911510c403959240b0f47e35ea1 Mon Sep 17 00:00:00 2001 From: Lee *!* Clagett Date: Thu, 10 Oct 2024 18:07:55 -0400 Subject: [PATCH] Replace deprecated result_of with decltype (#139) --- src/lmdb/lws_database.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lmdb/lws_database.h b/src/lmdb/lws_database.h index 47da73f..f2663d3 100644 --- a/src/lmdb/lws_database.h +++ b/src/lmdb/lws_database.h @@ -111,7 +111,7 @@ namespace lws_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) {