#include <Truncate.h>
Static Public Member Functions | |
| bool | greater_than (LEFT lhs, RIGHT rhs) |
|
||||||||||||||||
|
Definition at line 232 of file Truncate.h.
00233 {
00234 // Prevent wrap-around when casting to unsigned.
00235 if (lhs < 0)
00236 return false; // since rhs is always positive
00237 else
00238 {
00239 // Implicit promotion of unsigned LEFT and RIGHT types here.
00240 return To_Unsigned<LEFT>() (lhs) > rhs;
00241 }
00242 }
|
1.3.6