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; });