Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2004-07-18 08:21:43

Bugs item #993272, was opened at 2004-07-18 15:21
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Category: timer
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Philip Hodges (phhodges)
Assigned to: Beman Dawes (beman_dawes)
Summary: xtime_cmp: use comparison not subtraction

Initial Comment:
Subtraction of integral types is prone to arithmetic
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.


You can respond by visiting:

This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at