mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 06:05:58 -06:00
Fix warning for clang compiling in c++17 mode.
This commit is contained in:
parent
e909742efd
commit
c8f7793b01
1 changed files with 1 additions and 1 deletions
|
|
@ -183,7 +183,7 @@ class AsyncWork {
|
|||
Ret2 ret;
|
||||
|
||||
template<class Function, class... Args>
|
||||
void Do(Function&& f, Args&&... args) { co.Do([=, this]() { ret = f(args...); }); }
|
||||
void Do(Function&& f, Args&&... args) { co.Do([=, *this]() { ret = f(args...); }); }
|
||||
const Ret2& Get() { return ret; }
|
||||
Ret2 Pick() { return pick(ret); }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue