We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9866a0e commit 808dff7Copy full SHA for 808dff7
src/lmdb/database.h
@@ -111,7 +111,7 @@ namespace lmdb
111
\return The result of calling `f`.
112
*/
113
template<typename F>
114
- typename std::result_of<F(MDB_txn&)>::type try_write(F f, unsigned attempts = 3)
+ auto try_write(F f, unsigned attempts = 3) -> decltype(f(std::declval<MDB_txn&>()))
115
{
116
for (unsigned i = 0; i < attempts; ++i)
117
0 commit comments