Make appendCallNB lambda mutable

Lambdas are by deafult const so that they produce the same output every time they are run. This lambda needs to set the value on a captured promise which is a mutating operation, so it must be mutable.

llvm-svn: 372336
This commit is contained in:
Chris Bieneman 2019-09-19 15:45:12 +00:00
parent 7decdbf2db
commit 7cb60fb00f
1 changed files with 1 additions and 1 deletions

View File

@ -1417,7 +1417,7 @@ public:
auto FutureResult = Promise.get_future();
if (auto Err = this->template appendCallAsync<Func>(
[Promise = std::move(Promise)](ErrorReturn RetOrErr) {
[Promise = std::move(Promise)](ErrorReturn RetOrErr) mutable {
Promise.set_value(std::move(RetOrErr));
return Error::success();
},