From ae5e0a101b401fbefcb9267ef1b95bc163f7fcfa Mon Sep 17 00:00:00 2001 From: o-micron Date: Mon, 9 Mar 2020 20:41:20 +0200 Subject: [PATCH] Probably double check even if absel ?? Maybe that's the problem ? --- googletest/include/gtest/internal/gtest-port.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h index 60ff4716..1299e705 100644 --- a/googletest/include/gtest/internal/gtest-port.h +++ b/googletest/include/gtest/internal/gtest-port.h @@ -2223,7 +2223,7 @@ const char* StringFromGTestEnv(const char* flag, const char* default_val); #endif // !defined(GTEST_INTERNAL_DEPRECATED) -#if GTEST_HAS_ABSL +#if GTEST_HAS_ABSL && __cplusplus >= 201703L // double check for c++17 support ? // Always use absl::string_view for Matcher<> specializations if googletest // is built with absl support. # define GTEST_INTERNAL_HAS_STRING_VIEW 1