#include <Truncate.h>
Static Public Member Functions | |
static bool | greater_than (LEFT lhs, RIGHT rhs) |
Definition at line 247 of file Truncate.h.
static bool ACE_Utils::Safe_Comparator< LEFT, RIGHT, false, true >::greater_than | ( | LEFT | lhs, | |
RIGHT | rhs | |||
) | [inline, static] |
Definition at line 249 of file Truncate.h.
00250 { 00251 // Prevent wrap-around when casting to unsigned. 00252 if (rhs < 0) 00253 return true; // since lhs is always positive 00254 else 00255 { 00256 // Implicit promotion of unsigned LEFT and RIGHT types here. 00257 return lhs > To_Unsigned<RIGHT>() (rhs); 00258 } 00259 }