Browse Source

test: fix g++ compile errors

master
Dnomd343 1 month ago
parent
commit
25a09ffd76
  1. 2
      src/core_test/helper/block_num.h
  2. 2
      src/core_test/helper/hash.h

2
src/core_test/helper/block_num.h

@ -37,7 +37,7 @@ const std::vector<block_num_t>& block_nums();
namespace std { namespace std {
template <> template <>
struct std::hash<helper::block_num_t> { struct hash<helper::block_num_t> {
size_t operator()(const helper::block_num_t val) const noexcept { size_t operator()(const helper::block_num_t val) const noexcept {
return (val.n_1x1 << 6) ^ (val.n_1x2 << 3) ^ val.n_2x1; return (val.n_1x1 << 6) ^ (val.n_1x2 << 3) ^ val.n_2x1;
} }

2
src/core_test/helper/hash.h

@ -6,8 +6,10 @@
/// They do not guarantee the security of the hash algorithm, as this scenario /// They do not guarantee the security of the hash algorithm, as this scenario
/// is only used to verify the correctness of the data. /// is only used to verify the correctness of the data.
#include <string>
#include <vector> #include <vector>
#include <cstdint> #include <cstdint>
#include <string_view>
namespace helper { namespace helper {

Loading…
Cancel
Save