mirror of
https://codeberg.org/wownero/wownero-lws
synced 2026-01-09 15:15:15 -08:00
Replace deprecated result_of with decltype (#139)
This commit is contained in:
committed by
Lee *!* Clagett
parent
53ceb292ea
commit
48e9a52ed9
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user