|
Boost : |
Subject: [boost] [config] RTTI detection on Intel C++
From: Peter Dimov (lists_at_[hidden])
Date: 2014-06-10 11:30:29
I was going to prepare a simple pull request that basically added
#if !defined(__RTTI) && !defined(__INTEL_RTTI__) && !defined(__GXX_RTTI) &&
!defined(_CPPRTTI)
#define BOOST_NO_RTTI
#define BOOST_NO_TYPEID
#endif
to intel.hpp, but then I saw that this file doesn't contain any logic for
BOOST_NO_EXCEPTIONS, relying instead on common_edg.hpp to check
__EXCEPTIONS.
So I wonder whether the preferred approach wouldn't be to check __RTTI in
common_edg.hpp instead.
Opinions?
There's also a slight complication here because I suspect that when Intel is
in Microsoft mode, when RTTI is off it will still support typeid, as MSVC
does; so just BOOST_NO_RTTI would need to be defined, and not
BOOST_NO_TYPEID.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk