(svn r8057) -Codechange: Declare the "new" max template as static line.
authorcelestar
Thu, 11 Jan 2007 12:38:04 +0000
changeset 5603 adebdc9b413c
parent 5602 bccd4b89e536
child 5604 4629f14fe543
(svn r8057) -Codechange: Declare the "new" max template as static line.
src/macros.h
--- a/src/macros.h	Thu Jan 11 12:32:10 2007 +0000
+++ b/src/macros.h	Thu Jan 11 12:38:04 2007 +0000
@@ -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; }