We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b73f27f commit b80a07fCopy full SHA for b80a07f
googletest/include/gtest/internal/gtest-port.h
@@ -2352,7 +2352,8 @@ using Any = ::absl::any;
2352
} // namespace testing
2353
#else
2354
#ifdef __has_include
2355
-#if __has_include(<any>) && __cplusplus >= 201703L
+#if __has_include(<any>) && __cplusplus >= 201703L && \
2356
+ (!defined(_MSC_VER) || GTEST_HAS_RTTI)
2357
// Otherwise for C++17 and higher use std::any for UniversalPrinter<>
2358
// specializations.
2359
#define GTEST_INTERNAL_HAS_ANY 1
0 commit comments