diff --git a/common/util.h b/common/util.h index f4a9a873e75..cc9a45c0e73 100644 --- a/common/util.h +++ b/common/util.h @@ -30,8 +30,7 @@ template inline T MAX (T a, T b) { return (a>b) ? a : b; } /** * Template method which swaps the vaulues of its two parameters. */ -template -static inline void SWAP(T &a, T &b) { T tmp = a; a = b; b = tmp; } +template inline void SWAP(T &a, T &b) { T tmp = a; a = b; b = tmp; } #define ARRAYSIZE(x) ((int)(sizeof(x) / sizeof(x[0])))