Created on 2007-11-27.00:00:00 last changed 196 months ago
[Voted into the WP at the June, 2008 meeting.]
Proposed resolution (February, 2008):
Append the following paragraph to the end of 7.6.9 [expr.rel]:
If both operands (after conversions) are of arithmetic type, each of the operators shall yield true if the specified relation is true and false if it is false.
Append the following paragraph to the end of 7.6.10 [expr.eq]:
Each of the operators shall yield true if the specified relation is true and false if it is false.
The actual semantics of arithmetic comparison — e.g., whether 1 < 2 yields true or false — appear not to be specified anywhere in the Standard. The C Standard has a general statement that
Each of the operators < (less than), > (greater than), <= (less than or equal to), and >= (greater than or equal to) shall yield 1 if the specified relation is true and 0 if it is false.
There is no corresponding statement in the C++ Standard.
History | |||
---|---|---|---|
Date | User | Action | Args |
2008-10-05 00:00:00 | admin | set | status: dr -> cd1 |
2008-07-27 00:00:00 | admin | set | messages: + msg1742 |
2008-06-29 00:00:00 | admin | set | status: ready -> dr |
2008-03-17 00:00:00 | admin | set | messages: + msg1590 |
2008-03-17 00:00:00 | admin | set | status: open -> ready |
2007-11-27 00:00:00 | admin | create |