Skip to content

Commit 9803393

Browse files
committed
Explicitly specify 'template ' for fetch_string.
1 parent a9d5078 commit 9803393

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎td/mtproto/SessionConnection.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Status SessionConnection::parse_message(TlParser &parser, MsgInfo *info, Slice *
201201
<< "] is not divisible by 4");
202202
}
203203

204-
*packet = parser.fetch_string_raw<Slice>(bytes);
204+
*packet = parser.template fetch_string_raw<Slice>(bytes);
205205
if (parser.get_error() != nullptr) {
206206
return Status::Error(PSLICE() << "Failed to parse mtproto_api::message: " << parser.get_error());
207207
}

‎td/telegram/BusinessConnectionId.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class BusinessConnectionId {
6262

6363
template <class ParserT>
6464
void parse(ParserT &parser) {
65-
business_connection_id_ = parser.fetch_string<string>();
65+
business_connection_id_ = parser.template fetch_string<string>();
6666
}
6767
};
6868

‎tddb/td/db/binlog/BinlogEvent.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void BinlogEvent::init(string raw_event) {
2323
flags_ = parser.fetch_int();
2424
extra_ = static_cast<uint64>(parser.fetch_long());
2525
CHECK(size_ >= MIN_SIZE);
26-
parser.fetch_string_raw<Slice>(size_ - MIN_SIZE); // skip data
26+
parser.template fetch_string_raw<Slice>(size_ - MIN_SIZE); // skip data
2727
crc32_ = static_cast<uint32>(parser.fetch_int());
2828
raw_event_ = std::move(raw_event);
2929
}
@@ -43,7 +43,7 @@ Status BinlogEvent::validate() const {
4343
return Status::Error(PSLICE() << "Size of event changed: " << tag("was", size_) << tag("now", size)
4444
<< tag("real size", raw_event_.size()));
4545
}
46-
parser.fetch_string_raw<Slice>(size_ - TAIL_SIZE - sizeof(int)); // skip
46+
parser.template fetch_string_raw<Slice>(size_ - TAIL_SIZE - sizeof(int)); // skip
4747
auto stored_crc32 = static_cast<uint32>(parser.fetch_int());
4848
auto calculated_crc = crc32(Slice(as_slice(raw_event_).data(), size_ - TAIL_SIZE));
4949
if (calculated_crc != crc32_ || calculated_crc != stored_crc32) {

‎tddb/td/db/binlog/binlog_dump.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ int main(int argc, char *argv[]) {
125125
info[0].compressed_size += event.raw_event_.size();
126126
info[event.type_].compressed_size += event.raw_event_.size();
127127
if (event.type_ == ConfigPmcMagic || event.type_ == BinlogPmcMagic) {
128-
auto key = td::TlParser(event.get_data()).fetch_string<td::Slice>();
128+
auto key = td::TlParser(event.get_data()).template fetch_string<td::Slice>();
129129
info[event.type_].compressed_trie.add(key);
130130
}
131131
},
@@ -134,7 +134,7 @@ int main(int argc, char *argv[]) {
134134
info[0].full_size += event.raw_event_.size();
135135
info[event.type_].full_size += event.raw_event_.size();
136136
if (event.type_ == ConfigPmcMagic || event.type_ == BinlogPmcMagic) {
137-
auto key = td::TlParser(event.get_data()).fetch_string<td::Slice>();
137+
auto key = td::TlParser(event.get_data()).template fetch_string<td::Slice>();
138138
info[event.type_].trie.add(key);
139139
}
140140
LOG(PLAIN) << "LogEvent[" << td::tag("event_id", td::format::as_hex(event.id_))

0 commit comments

Comments
 (0)