Skip to content

Commit

Permalink
include
Browse files Browse the repository at this point in the history
  • Loading branch information
ePi5131 committed Jul 23, 2023
1 parent 47d4b47 commit daf519b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions patch/hash.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <type_traits>
#include <stdexcept>
#include <ranges>
#include <algorithm>

#include <Windows.h>

Expand Down Expand Up @@ -101,11 +102,12 @@ struct SHA256 {

return ret;
}

inline friend bool operator==(const SHA256& a, const SHA256& b) {
return std::ranges::equal(a.data, b.data);
}
};

inline bool operator==(const SHA256& a, const SHA256& b) {
return std::ranges::equal(a.data, b.data);
}

struct FNV1_32 {
uint32_t hash;
Expand Down

0 comments on commit daf519b

Please sign in to comment.