forked from BigfootDev/flatbuffers
Add --gen-absl-hash option to generate AbslHashValue for structs. (#8868)
This commit is contained in:
@@ -236,6 +236,10 @@ inline bool operator!=(const Vec3 &lhs, const Vec3 &rhs) {
|
||||
return !(lhs == rhs);
|
||||
}
|
||||
|
||||
template <typename H>
|
||||
inline H AbslHashValue(H h, const Vec3 &obj) {
|
||||
return H::combine(std::move(h), obj.x(), obj.y(), obj.z());
|
||||
}
|
||||
|
||||
struct MonsterT : public ::flatbuffers::NativeTable {
|
||||
typedef Monster TableType;
|
||||
|
||||
Reference in New Issue
Block a user