Skip to content

Commit 808dff7

Browse files
committed
Replace deprecated result_of with decltype
1 parent 9866a0e commit 808dff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lmdb/database.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ namespace lmdb
111111
\return The result of calling `f`.
112112
*/
113113
template<typename F>
114-
typename std::result_of<F(MDB_txn&)>::type try_write(F f, unsigned attempts = 3)
114+
auto try_write(F f, unsigned attempts = 3) -> decltype(f(std::declval<MDB_txn&>()))
115115
{
116116
for (unsigned i = 0; i < attempts; ++i)
117117
{

0 commit comments

Comments
 (0)