2
0
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:
John Preston
2018-09-18 13:43:14 +03:00
parent 62ffd93cb7
commit 377689ae86
7 changed files with 10 additions and 4 deletions

View File

@@ -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;