Subject: [Boost-bugs] [Boost C++ Libraries] #4385: Avoid redefining BOOST_NO_TYPEID and BOOST_NO_RTTI for gcc 4.3+
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-06-28 18:17:25
#4385: Avoid redefining BOOST_NO_TYPEID and BOOST_NO_RTTI for gcc 4.3+
----------------------------------------------------+-----------------------
Reporter: nigels.com@⦠| Owner: vladimir_prus
Type: Patches | Status: new
Milestone: Boost 1.44.0 | Component: build
Version: Boost 1.43.0 | Severity: Cosmetic
Keywords: gcc BOOST_NO_TYPEID BOOST_NO_RTTI NaCl |
----------------------------------------------------+-----------------------
Our codebase is configured to use BOOST_NO_TYPEID and BOOST_NO_RTTI for
various compiler toolchains. When we use gcc 4.4 as bundled in the Google
Native Client (NaCl) SDK for OSX and Linux, we see compilation warnings
due to the autodetection as follows:
{{{
//
// 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
}}}
Our proposed patch is to avoid redefining either of these:
{{{
//
// RTTI and typeinfo detection is possible post gcc-4.3:
//
#if __GNUC__ * 100 + __GNUC_MINOR__ >= 403
# ifndef __GXX_RTTI
# ifndef BOOST_NO_TYPEID
# define BOOST_NO_TYPEID
# endif
# ifndef BOOST_NO_RTTI
# define BOOST_NO_RTTI
# endif
# endif
#endif
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4385> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC