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) {