From 4ce15369cfa0ba18ee359c47e869d3babe81894d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 5 Feb 2005 05:53:18 +0000 Subject: [PATCH] unlike member functions, templates are not automatically inlined --- stepmania/src/RageUtil.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageUtil.h b/stepmania/src/RageUtil.h index 8a4617deac..42089845ba 100644 --- a/stepmania/src/RageUtil.h +++ b/stepmania/src/RageUtil.h @@ -268,9 +268,9 @@ int FindIndex( T1 begin, T1 end, const T2 *p ) /* Useful for objects with no operator-, eg. map::iterator (more convenient than advance). */ template -T Increment( T a ) { ++a; return a; } +inline T Increment( T a ) { ++a; return a; } template -T Decrement( T a ) { --a; return a; } +inline T Decrement( T a ) { --a; return a; } void TrimLeft(CString &str, const char *s = "\r\n\t "); void TrimRight(CString &str, const char *s = "\r\n\t ");