From 8f6c0f224252f722c5cd64db85b425f33ad72182 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Fri, 10 Jul 2020 12:41:51 +0200 Subject: Functions: make generic types equality comparable --- tests/gtests/functions/FN_cpp_type_test.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') 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) -- cgit v1.2.3