mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
Added gcc auto-detection of no typeid/rtti.
Added normalisation code for no rtti. [SVN r48373]
This commit is contained in:
@ -91,6 +91,15 @@
|
||||
#if __GNUC__ > 3 || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 1 )
|
||||
#define BOOST_HAS_NRVO
|
||||
#endif
|
||||
//
|
||||
// RTTI and typeinfo detection is possible post gcc-4.3:
|
||||
//
|
||||
#if __GNUC__ * 100 + __GNUC_MINOR__ >= 403
|
||||
# ifndef __GXX_RTTI
|
||||
# define BOOST_NO_TYPEID
|
||||
# define BOOST_NO_RTTI
|
||||
# endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// C++0x features
|
||||
|
@ -157,6 +157,13 @@
|
||||
# define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
|
||||
#endif
|
||||
|
||||
//
|
||||
// Without typeid support we have no dynamic RTTI either:
|
||||
//
|
||||
#if defined(BOOST_NO_TYPEID) && !defined(BOOST_NO_RTTI)
|
||||
# define BOOST_NO_RTTI
|
||||
#endif
|
||||
|
||||
//
|
||||
// If we have a standard allocator, then we have a partial one as well:
|
||||
//
|
||||
|
Reference in New Issue
Block a user