mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
fix compilation errors of different platforms and move to c++20
This commit is contained in:
parent
0780a6a1b5
commit
1c66852842
10 changed files with 67 additions and 25 deletions
|
@ -76,7 +76,7 @@ struct CellHash {
|
|||
|
||||
inline size_t cell_hash_slice_hash(td::Slice hash) {
|
||||
// use offset 8, because in db keys are grouped by first bytes.
|
||||
return td::as<size_t>(hash.ubegin() + 8);
|
||||
return td::as<size_t>(hash.substr(8, 8).ubegin());
|
||||
}
|
||||
namespace std {
|
||||
template <>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue