diff options
author | Gennadiy Civil <misterg@google.com> | 2018-04-18 18:21:28 (GMT) |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2018-04-18 18:21:28 (GMT) |
commit | 78d73814fae5df61868bea45f22c5f8cd2af9a32 (patch) | |
tree | 355e1eef58e3a9f20d0ae46aa6a8acff9598c179 | |
parent | a48b95ef8166fd951de55f48cd95132759383334 (diff) | |
download | googletest-78d73814fae5df61868bea45f22c5f8cd2af9a32.zip googletest-78d73814fae5df61868bea45f22c5f8cd2af9a32.tar.gz googletest-78d73814fae5df61868bea45f22c5f8cd2af9a32.tar.bz2 |
http://cl/193386206
-rw-r--r-- | googlemock/test/gmock-matchers_test.cc | 9 |
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; |