Fix warning for clang compiling in c++17 mode.

This commit is contained in:
Zbigniew Rębacz 2025-07-06 20:40:54 +02:00
parent e909742efd
commit c8f7793b01

View file

@ -183,7 +183,7 @@ class AsyncWork {
Ret2 ret; Ret2 ret;
template<class Function, class... Args> 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; } const Ret2& Get() { return ret; }
Ret2 Pick() { return pick(ret); } Ret2 Pick() { return pick(ret); }
}; };