diff options
Diffstat (limited to 'source/blender/functions/FN_cpp_type.hh')
-rw-r--r-- | source/blender/functions/FN_cpp_type.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/functions/FN_cpp_type.hh b/source/blender/functions/FN_cpp_type.hh index 686ecffb445..890530805d8 100644 --- a/source/blender/functions/FN_cpp_type.hh +++ b/source/blender/functions/FN_cpp_type.hh @@ -66,6 +66,7 @@ * pointers to virtual member functions. */ +#include "BLI_hash.hh" #include "BLI_index_mask.hh" #include "BLI_math_base.h" #include "BLI_string_ref.hh" @@ -481,6 +482,11 @@ class CPPType { return default_value_; } + uint32_t hash() const + { + return DefaultHash<const CPPType *>{}(this); + } + /** * Two types only compare equal when their pointer is equal. No two instances of CPPType for the * same C++ type should be created. |