implicit capture of 'this' with a capture default of '=' is deprecated

This commit is contained in:
vczh
2025-05-14 10:08:15 -07:00
parent 726fa4c099
commit f026d922d9
7 changed files with 53 additions and 53 deletions
+2 -2
View File
@@ -392,7 +392,7 @@ FutureAndPromiseAsync
bool SendResult(const Value& result)override
{
return Send([=]()
return Send([=, this]()
{
cr->SetResult(result);
});
@@ -400,7 +400,7 @@ FutureAndPromiseAsync
bool SendFailure(Ptr<IValueException> failure)override
{
return Send([=]()
return Send([=, this]()
{
cr->SetFailure(failure);
});