Added gcc auto-detection of no typeid/rtti.

Added normalisation code for no rtti.

[SVN r48373]
This commit is contained in:
John Maddock
2008-08-25 11:29:55 +00:00
parent 5f1c6a0d73
commit 4783cd575f
2 changed files with 16 additions and 0 deletions

View File

@ -91,6 +91,15 @@
#if __GNUC__ > 3 || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 1 ) #if __GNUC__ > 3 || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 1 )
#define BOOST_HAS_NRVO #define BOOST_HAS_NRVO
#endif #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 // C++0x features

View File

@ -157,6 +157,13 @@
# define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL # define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
#endif #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: // If we have a standard allocator, then we have a partial one as well:
// //