From 07bbbbaf618d7f5a723f9de81d25373405df5735 Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 17 Apr 2019 12:42:43 -0400 Subject: [PATCH] fixed gcc 4.7 build --- libi2pd/Destination.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libi2pd/Destination.cpp b/libi2pd/Destination.cpp index 89baf945..ba90342c 100644 --- a/libi2pd/Destination.cpp +++ b/libi2pd/Destination.cpp @@ -600,8 +600,9 @@ namespace client return; } auto s = shared_from_this (); + // we must capture this for gcc 4.7 due the bug RequestLeaseSet (ls->GetStoreHash (), - [s, ls](std::shared_ptr leaseSet) + [s, ls, this](std::shared_ptr leaseSet) { if (leaseSet) {