mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix build for Xcode 10.
This commit is contained in:
@@ -96,7 +96,7 @@ public:
|
||||
std::is_assignable_v<Type&, OtherType>>>
|
||||
variable(producer<OtherType, Error, Generator> &&stream) {
|
||||
std::move(stream)
|
||||
| start_with_next([this](auto &&data) {
|
||||
| start_with_next([=](auto &&data) {
|
||||
assign(std::forward<decltype(data)>(data));
|
||||
}, _lifetime);
|
||||
}
|
||||
@@ -111,7 +111,7 @@ public:
|
||||
producer<OtherType, Error, Generator> &&stream) {
|
||||
_lifetime.destroy();
|
||||
std::move(stream)
|
||||
| start_with_next([this](auto &&data) {
|
||||
| start_with_next([=](auto &&data) {
|
||||
assign(std::forward<decltype(data)>(data));
|
||||
}, _lifetime);
|
||||
return *this;
|
||||
|
Reference in New Issue
Block a user