#include <Truncate.h>
Static Public Member Functions | |
| bool | greater_than (LEFT lhs, RIGHT rhs) |
|
||||||||||||||||
|
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 }
|
1.3.6