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:41:51 +0300
committerJacques Lucke <jacques@blender.org>2020-07-10 13:57:28 +0300
commit8f6c0f224252f722c5cd64db85b425f33ad72182 (patch)
treed8ab941ebbc9b4ab5a19facf854e921d1c02208f /tests
parent52636c3059de1f8b4ec092cd8fa4c535be59867e (diff)
Functions: make generic types equality comparable
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 77b33870988..c014dd0e1f7 100644
--- a/tests/gtests/functions/FN_cpp_type_test.cc
+++ b/tests/gtests/functions/FN_cpp_type_test.cc
@@ -62,6 +62,11 @@ struct TestType {
stream << value.value;
return stream;
}
+
+ friend bool operator==(const TestType &a, const TestType &b)
+ {
+ return false;
+ }
};
MAKE_CPP_TYPE(TestType, TestType)