We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a888edf commit 82199c7Copy full SHA for 82199c7
tests/gtest/include/gtest/internal/gtest-port.h
@@ -628,8 +628,11 @@ struct _RTL_CRITICAL_SECTION;
628
#ifndef GTEST_HAS_TR1_TUPLE
629
# if GTEST_OS_LINUX_ANDROID && defined(_STLPORT_MAJOR)
630
// STLport, provided with the Android NDK, has neither <tr1/tuple> or <tuple>.
631
-# define GTEST_HAS_TR1_TUPLE 0
632
-# else
+#define GTEST_HAS_TR1_TUPLE 0
+#elif defined(_MSC_VER)
633
+// Don't use tr1 with MSVC - it results in compiler error.
634
635
+#else
636
// The user didn't tell us not to do it, so we assume it's OK.
637
# define GTEST_HAS_TR1_TUPLE 1
638
# endif
0 commit comments