From 697e09bda9f425898d1c12ed4c757e68150b4c01 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Mon, 8 Dec 2014 18:31:09 +0100 Subject: [PATCH] Allow BOOST_TYPE_INDEX_FORCE_NO_RTTI_COMPATIBILITY for MSVC BOOST_TYPE_INDEX_FORCE_NO_RTTI_COMPATIBILITY had no effect for MSVC. With this change, it is treated like BOOST_NO_RTTI also for MSVC. --- include/boost/type_index.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/type_index.hpp b/include/boost/type_index.hpp index fe10b4e..dce89d8 100644 --- a/include/boost/type_index.hpp +++ b/include/boost/type_index.hpp @@ -27,7 +27,7 @@ # endif #elif (!defined(BOOST_NO_RTTI) && !defined(BOOST_TYPE_INDEX_FORCE_NO_RTTI_COMPATIBILITY)) || defined(BOOST_MSVC) # include -# ifdef BOOST_NO_RTTI +# if defined(BOOST_NO_RTTI) || defined(BOOST_TYPE_INDEX_FORCE_NO_RTTI_COMPATIBILITY) # include # ifdef BOOST_HAS_PRAGMA_DETECT_MISMATCH # pragma detect_mismatch( "boost__type_index__abi", "RTTI is off - typeid() is used only for templates")