src/Utility.h
changeset 256 3c184218462d
parent 251 ca99a81745fe
     1.1 --- a/src/Utility.h	Tue Jan 01 20:08:34 2013 -0800
     1.2 +++ b/src/Utility.h	Sun Jan 06 13:52:21 2013 -0800
     1.3 @@ -282,6 +282,12 @@
     1.4      return t1 < t2 ? t1 : t2;
     1.5  }
     1.6  
     1.7 +template <typename T> static inline T
     1.8 +Max(const T &t1, const T &t2)
     1.9 +{
    1.10 +    return t1 > t2 ? t1 : t2;
    1.11 +}
    1.12 +
    1.13  #define OFFSETOF(Class, Member) reinterpret_cast<size_t>(&((Class *)NULL)->Member)
    1.14  
    1.15  }