unlike member functions, templates are not automatically inlined

This commit is contained in:
Glenn Maynard
2005-02-05 05:53:18 +00:00
parent bf80420cd8
commit 4ce15369cf
+2 -2
View File
@@ -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<class T>
T Increment( T a ) { ++a; return a; }
inline T Increment( T a ) { ++a; return a; }
template<class T>
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 ");