mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Rewrite HashMapHasherDefault based on type traits - it is now possible to declare a default hashing function for any type.
Remove cross-project includes from `hashfuncs.h`. Improve hashing function for `Color` (based on values instead of `String`). Move `Variant` comparison from `hash_map.h` to `dictionary.cpp` (`VariantComparatorDictionary`), where it's used. Remove now unnecessary `HashableHasher`.
This commit is contained in:
@@ -216,6 +216,8 @@ public:
|
||||
ref(memnew(T(p_params...)));
|
||||
}
|
||||
|
||||
uint32_t hash() const { return HashMapHasherDefault::hash(reference); }
|
||||
|
||||
Ref() = default;
|
||||
|
||||
~Ref() {
|
||||
|
||||
Reference in New Issue
Block a user