(svn r8057) -Codechange: Declare the "new" max template as static line.

This commit is contained in:
celestar 2007-01-11 12:38:04 +00:00
parent c56ee62ade
commit e12cf8503d

View File

@ -20,7 +20,11 @@
#undef max
#endif
template <typename T> T max(T a, T b) { return a >= b ? a : b; }
template <typename T>
static inline T max(T a, T b)
{
return a >= b ? a : b;
}
static inline int min(int a, int b) { if (a <= b) return a; return b; }