mirror of
https://github.com/vtnerd/monero-lws.git
synced 2025-04-17 02:41:55 +00:00
Replace deprecated result_of with decltype
This commit is contained in:
parent
fa7642be3c
commit
c0a7188a43
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ namespace lws_lmdb
|
|||
\return The result of calling `f`.
|
||||
*/
|
||||
template<typename F>
|
||||
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&>()))
|
||||
{
|
||||
for (unsigned i = 0; i < attempts; ++i)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue