From 3508784108a38d673a0c7d14c897e7a51b2a7e36 Mon Sep 17 00:00:00 2001 From: "zhanyong.wan" Date: Mon, 14 Dec 2009 19:14:04 +0000 Subject: Stops supporting MSVC 7.1 with exceptions disabled. --- include/gtest/internal/gtest-port.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/gtest') diff --git a/include/gtest/internal/gtest-port.h b/include/gtest/internal/gtest-port.h index 603e7f1b..c0a1f117 100644 --- a/include/gtest/internal/gtest-port.h +++ b/include/gtest/internal/gtest-port.h @@ -269,6 +269,10 @@ // ::std::string is not available is MSVC 7.1 or lower with exceptions // disabled. #if defined(_MSC_VER) && (_MSC_VER < 1400) && !GTEST_HAS_EXCEPTIONS +#if !GTEST_ALLOW_VC71_WITHOUT_EXCEPTIONS_ +#error "When compiling gtest using MSVC 7.1, exceptions must be enabled." +#error "Otherwise std::string and std::vector don't compile." +#endif #define GTEST_HAS_STD_STRING 0 #else #define GTEST_HAS_STD_STRING 1 -- cgit v1.2.3