blob: 12e7fae0726949a88e86a071422d6935d8ddb48a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- Telegram/SourceFiles/base/bytes.h.orig 2019-07-07 13:34:35 UTC
+++ Telegram/SourceFiles/base/bytes.h
@@ -137,7 +137,7 @@ template <
vector concatenate(Args &&...args) {
const auto size = details::spansLength(args...);
auto result = vector(size);
- details::spansAppend(make_span(result), args...);
+ details::spansAppend(bytes::make_span(result), args...);
return result;
}
@@ -149,7 +149,7 @@ vector concatenate(SpanRange args) {
size += bytes::make_span(arg).size();
}
auto result = vector(size);
- auto buffer = make_span(result);
+ auto buffer = bytes::make_span(result);
for (const auto &arg : args) {
const auto part = bytes::make_span(arg);
bytes::copy(buffer, part);
|