Boost C++ Libraries: Ticket #2242: Autodetect BOOST_NO_TYPEID, BOOST_NO_RTTI for g++ 4.3 and above https://svn.boost.org/trac10/ticket/2242 <p> g++ 4.3 and above defines __GXX_RTTI when RTTI is on. Something like </p> <pre class="wiki">#if __GNUC__ * 100 + __GNUC_MINOR__ &gt;= 403 #ifndef __GXX_RTTI #define BOOST_NO_TYPEID #define BOOST_NO_RTTI #endif #endif </pre><p> ought to work. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2242 Trac 1.4.3 John Maddock Mon, 25 Aug 2008 11:31:05 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2242#comment:1 https://svn.boost.org/trac10/ticket/2242#comment:1 <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> Added. </p> Ticket