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")