diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-10 13:41:51 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-10 13:57:28 +0300 |
commit | 8f6c0f224252f722c5cd64db85b425f33ad72182 (patch) | |
tree | d8ab941ebbc9b4ab5a19facf854e921d1c02208f /tests/gtests | |
parent | 52636c3059de1f8b4ec092cd8fa4c535be59867e (diff) |
Functions: make generic types equality comparable
Diffstat (limited to 'tests/gtests')
-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 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) |