Boost C++ Libraries: Ticket #107: bad_cast in hex to short https://svn.boost.org/trac10/ticket/107 <pre class="wiki">unsigned int j = lexical_cast&lt;unsigned int&gt;("0X10"); produces bad_cast boost 1.28 on linux using gcc 2.95.2 </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/107 Trac 1.4.3 kevlin Tue, 20 Aug 2002 18:32:55 GMT status changed https://svn.boost.org/trac10/ticket/107#comment:1 https://svn.boost.org/trac10/ticket/107#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=32864 This is not a defect. </pre> Ticket