From 2af0a97e4f256bf106299c4de6b2e75027b30a36 Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Sun, 31 Mar 2019 16:07:14 +0300 Subject: [PATCH] Expand BOOST_UNREACHABLE_RETURN to __assume(0) on MSVC --- include/boost/config/compiler/visualc.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/boost/config/compiler/visualc.hpp b/include/boost/config/compiler/visualc.hpp index f1674099..52cb96fc 100644 --- a/include/boost/config/compiler/visualc.hpp +++ b/include/boost/config/compiler/visualc.hpp @@ -43,6 +43,9 @@ # error "Compiler not supported or configured - please reconfigure" #endif +// VS2005 (VC8) docs: __assume has been in Visual C++ for multiple releases +#define BOOST_UNREACHABLE_RETURN(x) __assume(0) + #if _MSC_FULL_VER < 180020827 # define BOOST_NO_FENV_H #endif