Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-07-10 13:54:19 +0300
committerJacques Lucke <jacques@blender.org>2020-07-10 13:57:28 +0300
commit3edd2832b2f6cb24581951ee592917c524900fb5 (patch)
tree1a293d76b633452b3d5e2bc84c3afffe0188168f /tests
parentf62204718bf8efc1661fd61cf85d24bc8268f763 (diff)
Functions: make generic types hashable
Diffstat (limited to 'tests')
-rw-r--r--tests/gtests/functions/FN_cpp_type_test.cc5
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)