From e12cf8503d52cb62b1d142d42c34d51af1721ed8 Mon Sep 17 00:00:00 2001 From: celestar Date: Thu, 11 Jan 2007 12:38:04 +0000 Subject: (svn r8057) -Codechange: Declare the "new" max template as static line. --- src/macros.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/macros.h b/src/macros.h index 63d59eb72..9c73f38f3 100644 --- a/src/macros.h +++ b/src/macros.h @@ -20,7 +20,11 @@ #undef max #endif -template T max(T a, T b) { return a >= b ? a : b; } +template +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; } -- cgit v1.2.3-70-g09d2