Boost C++ Libraries: Ticket #13467: RTTI issue with non-polymorphic types in debug mode https://svn.boost.org/trac10/ticket/13467 <p> While serializing non-polymorphic types without RTTI in debug mode you get compiler warnings and execution crashes. In release mode everything works fine. This is because dynamic_cast is used for debugging purposes. The code is in smart_cast.hpp, starting in line 87: </p> <pre class="wiki"> #if ! defined(NDEBUG) \ || defined(__MWERKS__) // do a checked dynamic cast return cross::cast(u); #else </pre><p> I believe the first line could be replaced with: </p> <pre class="wiki"> #if (! defined(NDEBUG) &amp;&amp; ! defined(BOOST_NO_RTTI) ) \ </pre><p> This solved the issue for me. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13467 Trac 1.4.3