diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-10 13:54:19 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-10 13:57:28 +0300 |
commit | 3edd2832b2f6cb24581951ee592917c524900fb5 (patch) | |
tree | 1a293d76b633452b3d5e2bc84c3afffe0188168f /tests | |
parent | f62204718bf8efc1661fd61cf85d24bc8268f763 (diff) |
Functions: make generic types hashable
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gtests/functions/FN_cpp_type_test.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/gtests/functions/FN_cpp_type_test.cc b/tests/gtests/functions/FN_cpp_type_test.cc index c014dd0e1f7..da5ce3416ce 100644 --- a/tests/gtests/functions/FN_cpp_type_test.cc +++ b/tests/gtests/functions/FN_cpp_type_test.cc @@ -67,6 +67,11 @@ struct TestType { { return false; } + + uint32_t hash() const + { + return 0; + } }; MAKE_CPP_TYPE(TestType, TestType) |