From 50487a6d8561951f473e9727f9d850eaf4a9f0f0 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 10 Jun 2014 20:33:04 +0300 Subject: [PATCH] Add RTTI detection to intel.hpp. --- include/boost/config/compiler/intel.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/boost/config/compiler/intel.hpp b/include/boost/config/compiler/intel.hpp index cbc9422f..2f0d9adc 100644 --- a/include/boost/config/compiler/intel.hpp +++ b/include/boost/config/compiler/intel.hpp @@ -157,6 +157,24 @@ template<> struct assert_intrinsic_wchar_t {}; #define BOOST_UNLIKELY(x) __builtin_expect(x, 0) #endif +// RTTI +// __RTTI is the EDG macro +// __INTEL_RTTI__ is the Intel macro +// __GXX_RTTI is the g++ macro +// _CPPRTTI is the MSVC++ macro +#if !defined(__RTTI) && !defined(__INTEL_RTTI__) && !defined(__GXX_RTTI) && !defined(_CPPRTTI) + +#if !defined(BOOST_NO_RTTI) +# define BOOST_NO_RTTI +#endif + +// in MS mode, static typeid works even when RTTI is off +#if !defined(_MSC_VER) && !defined(BOOST_NO_TYPEID) +# define BOOST_NO_TYPEID +#endif + +#endif + // // versions check: // we don't support Intel prior to version 6.0: