Boost C++ Libraries: Ticket #12252: numeric_cast<int64_t>(pow(2.0, 63.0)) doesn't throw https://svn.boost.org/trac10/ticket/12252 <p> The following code produces an overflow but doesn't throw: </p> <pre class="wiki">int64_t v = numeric_cast&lt;int64_t&gt;(pow(2.0, 63.0)); </pre><p> For an explanation, see <a class="ext-link" href="http://stackoverflow.com/a/30424410/1956010"><span class="icon">​</span>http://stackoverflow.com/a/30424410/1956010</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12252 Trac 1.4.3