blob: 869b4eb37ad360bc14e3779320b2a41b0b270f9d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- Telegram/lib_base/base/bytes.h.orig 2020-01-29 09:41:30 UTC
+++ Telegram/lib_base/base/bytes.h
@@ -136,7 +136,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;
}
@@ -148,7 +148,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);
|