mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-08-18 01:44:28 +08:00
implicit capture of 'this' with a capture default of '=' is deprecated
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user