Boost C++ Libraries: Ticket #6449: numeric_cast is broken when using VC and /RTCc option https://svn.boost.org/trac10/ticket/6449 <p> run-time checker detects the illegal assignment in GT_HiT::apply() in numeric\conversion\detail\converter.hpp called by 'numeric_cast&lt;int, unsigned short&gt;'. </p> <p> please compile the attached file with below command. </p> <blockquote class="citation"> <p> cl.exe numeric.cpp /EHsc /RTCc /Zi </p> </blockquote> <p> I confirmed same problem using VC2005 + boost 1.47.0 and VC2010 + boost 1.48.0. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6449 Trac 1.4.3 y.hoshizuki Thu, 26 Jan 2012 13:30:42 GMT attachment set https://svn.boost.org/trac10/ticket/6449 https://svn.boost.org/trac10/ticket/6449 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">numeric.cpp</span> </li> </ul> <p> minimal test program </p> Ticket