summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGennadiy Civil <misterg@google.com>2018-04-18 18:21:28 (GMT)
committerGennadiy Civil <misterg@google.com>2018-04-18 18:21:28 (GMT)
commit78d73814fae5df61868bea45f22c5f8cd2af9a32 (patch)
tree355e1eef58e3a9f20d0ae46aa6a8acff9598c179
parenta48b95ef8166fd951de55f48cd95132759383334 (diff)
downloadgoogletest-78d73814fae5df61868bea45f22c5f8cd2af9a32.zip
googletest-78d73814fae5df61868bea45f22c5f8cd2af9a32.tar.gz
googletest-78d73814fae5df61868bea45f22c5f8cd2af9a32.tar.bz2
http://cl/193386206
-rw-r--r--googlemock/test/gmock-matchers_test.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/googlemock/test/gmock-matchers_test.cc b/googlemock/test/gmock-matchers_test.cc
index ebb88cc..59efe64 100644
--- a/googlemock/test/gmock-matchers_test.cc
+++ b/googlemock/test/gmock-matchers_test.cc
@@ -749,6 +749,13 @@ TEST(MatcherCastTest, NonImplicitlyConstructibleTypeWithOperatorEq) {
EXPECT_FALSE(m3.Matches(239));
}
+// ConvertibleFromAny does not work with MSVC. resulting in
+// error C2440: 'initializing': cannot convert from 'Eq' to 'M'
+// No constructor could take the source type, or constructor overload
+// resolution was ambiguous
+
+#if !defined _MSC_VER
+
// The below ConvertibleFromAny struct is implicitly constructible from anything
// and when in the same namespace can interact with other tests. In particular,
// if it is in the same namespace as other tests and one removes
@@ -789,6 +796,8 @@ TEST(MatcherCastTest, FromConvertibleFromAny) {
}
} // namespace convertible_from_any
+#endif // !defined _MSC_VER
+
struct IntReferenceWrapper {
IntReferenceWrapper(const int& a_value) : value(&a_value) {}
const int* value;