From 1af88622021509bb9b11ce9e288dfc14507215db Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Wed, 13 May 2020 22:11:58 +0200 Subject: [PATCH] fixed capture for lambda --- src/wallet/plain_wallet_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/plain_wallet_api.cpp b/src/wallet/plain_wallet_api.cpp index f6e0d9b8..2fd82ad3 100644 --- a/src/wallet/plain_wallet_api.cpp +++ b/src/wallet/plain_wallet_api.cpp @@ -42,7 +42,7 @@ struct plain_wallet_instance std::shared_ptr ginstance_ptr; -epee::misc_utils::auto_scope_leave_caller scope_exit_handler = misc_utils::create_scope_leave_handler([&]() +epee::misc_utils::auto_scope_leave_caller scope_exit_handler = misc_utils::create_scope_leave_handler([]() { std::cout << "[LEAVE HANDLER CALLED]" << ENDL; });