diff options
-rw-r--r-- | common/util.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/util.h b/common/util.h index f4a9a873e7..cc9a45c0e7 100644 --- a/common/util.h +++ b/common/util.h @@ -30,8 +30,7 @@ template<typename T> inline T MAX (T a, T b) { return (a>b) ? a : b; } /** * Template method which swaps the vaulues of its two parameters. */ -template<class T> -static inline void SWAP(T &a, T &b) { T tmp = a; a = b; b = tmp; } +template<typename T> inline void SWAP(T &a, T &b) { T tmp = a; a = b; b = tmp; } #define ARRAYSIZE(x) ((int)(sizeof(x) / sizeof(x[0]))) |