Boost C++ Libraries: Ticket #289: xtime_cmp: use comparison not subtraction https://svn.boost.org/trac10/ticket/289 <pre class="wiki">Subtraction of integral types is prone to arithmetic overflow. It is not well-behaved for implementing comparison unless we first cast both operands to a wider integral type or assert that they fall in a narrower range. Choose comparison order to slightly favour future timeouts, or imminent timeouts in the same second? Patch provided "as is" without express or implied warranty. It may contain any number of intended and unintended flaws. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/289 Trac 1.4.3 martin_wille Fri, 06 Jan 2006 09:55:54 GMT status changed https://svn.boost.org/trac10/ticket/289#comment:1 https://svn.boost.org/trac10/ticket/289#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=592361 This was fixed in version 1.14 (2004-08-09) of xtime.hpp (Boost 1.32.0 and better). </pre> Ticket