diff --git a/src/lmdb/database.h b/src/lmdb/database.h index 4047a3600..571f59b0d 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) {