Generate relational matchers (Eq,Lt, etc) with CRTP instead of macro.
diff --git a/test/gmock-matchers_test.cc b/test/gmock-matchers_test.cc
index c547622..cb58847 100644
--- a/test/gmock-matchers_test.cc
+++ b/test/gmock-matchers_test.cc
@@ -607,11 +607,11 @@
EXPECT_FALSE(m2.Matches(1));
}
-// Implicitly convertible form any type.
+// Implicitly convertible from any type.
struct ConvertibleFromAny {
ConvertibleFromAny(int a_value) : value(a_value) {}
template <typename T>
- ConvertibleFromAny(const T& a_value) : value(-1) {
+ ConvertibleFromAny(const T& /*a_value*/) : value(-1) {
ADD_FAILURE() << "Conversion constructor called";
}
int value;