From d23ba31dad1ecfc6032fb8b3ecf19bd92bd3992c Mon Sep 17 00:00:00 2001 From: Sergey Shandar Date: Tue, 8 Aug 2017 17:36:58 -0700 Subject: [PATCH] Incorrect MSVC version detection I know, Boost doesn't support MSVC 5.0 and 6.0. But the expression is invalid. Another way to fix it: ```c++ # if _MSC_VER < 1300 // Note: Versions up to 7.0 aren't supported. # define BOOST_COMPILER_VERSION 6.0 # elif _MSC_VER < 1310 # define BOOST_COMPILER_VERSION 7.0 ``` --- include/boost/config/compiler/visualc.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/config/compiler/visualc.hpp b/include/boost/config/compiler/visualc.hpp index c0557de7..9e470f08 100644 --- a/include/boost/config/compiler/visualc.hpp +++ b/include/boost/config/compiler/visualc.hpp @@ -289,7 +289,7 @@ # endif # endif # else -# if _MSC_VER < 1310 +# if _MSC_VER < 1200 // Note: Versions up to 7.0 aren't supported. # define BOOST_COMPILER_VERSION 5.0 # elif _MSC_VER < 1300