#include <Truncate.h>
Static Public Member Functions | |
static bool | greater_than (LEFT lhs, RIGHT rhs) |
Definition at line 230 of file Truncate.h.
static bool ACE_Utils::Safe_Comparator< LEFT, RIGHT, true, false >::greater_than | ( | LEFT | lhs, | |
RIGHT | rhs | |||
) | [inline, static] |
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 }