Boost C++ Libraries: Ticket #4385: Avoid redefining BOOST_NO_TYPEID and BOOST_NO_RTTI for gcc 4.3+ https://svn.boost.org/trac10/ticket/4385 <p> 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 (<a class="missing wiki">NaCl</a>) SDK for OSX and Linux, we see compilation warnings due to the autodetection as follows: </p> <pre class="wiki">// // RTTI and typeinfo detection is possible post gcc-4.3: // #if __GNUC__ * 100 + __GNUC_MINOR__ &gt;= 403 # ifndef __GXX_RTTI # define BOOST_NO_TYPEID # define BOOST_NO_RTTI # endif #endif </pre><p> Our proposed patch is to avoid redefining either of these: </p> <pre class="wiki">// // RTTI and typeinfo detection is possible post gcc-4.3: // #if __GNUC__ * 100 + __GNUC_MINOR__ &gt;= 403 # ifndef __GXX_RTTI # ifndef BOOST_NO_TYPEID # define BOOST_NO_TYPEID # endif # ifndef BOOST_NO_RTTI # define BOOST_NO_RTTI # endif # endif #endif </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4385 Trac 1.4.3 nigels.com@… Mon, 28 Jun 2010 18:18:36 GMT attachment set https://svn.boost.org/trac10/ticket/4385 https://svn.boost.org/trac10/ticket/4385 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_gcc_redefines.diff</span> </li> </ul> <p> Patch for boost w.r.t revision 63409 </p> Ticket Steven Watanabe Mon, 28 Jun 2010 18:26:16 GMT owner, component changed https://svn.boost.org/trac10/ticket/4385#comment:1 https://svn.boost.org/trac10/ticket/4385#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Vladimir Prus</span> to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">build</span> → <span class="trac-field-new">config</span> </li> </ul> Ticket John Maddock Tue, 29 Jun 2010 16:02:17 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4385#comment:2 https://svn.boost.org/trac10/ticket/4385#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/63439" title="Patch for macro redefinitions. Fixes #4385.">[63439]</a>) Patch for macro redefinitions. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4385" title="#4385: Patches: Avoid redefining BOOST_NO_TYPEID and BOOST_NO_RTTI for gcc 4.3+ (closed: fixed)">#4385</a>. </p> Ticket