avoid problems with compilers that dont have default template arguments

This commit is contained in:
Jeff Hill
2000-10-11 19:31:51 +00:00
parent 6606dd6d31
commit 784adfa5a7
+2 -6
View File
@@ -57,7 +57,6 @@
#include "tsSLList.h"
#include "shareLib.h"
#include "locationException.h"
typedef size_t resTableIndex;
template <class T, class ID> class resTableIter;
@@ -223,11 +222,8 @@ private:
// efficiently. Hash indexes are produced more efficiently
// when (MAX_ID_WIDTH - MIN_INDEX_WIDTH) is minimized.
//
#if defined(__GNUC__) && ( __GNUC__<2 || (__GNUC__==2 && __GNUC__<8) )
template <class T, unsigned MIN_INDEX_WIDTH, unsigned MAX_ID_WIDTH>
#else
template <class T, unsigned MIN_INDEX_WIDTH=4u, unsigned MAX_ID_WIDTH = sizeof(T)*CHAR_BIT>
#endif
template <class T, unsigned MIN_INDEX_WIDTH=4u,
unsigned MAX_ID_WIDTH = sizeof(T)*CHAR_BIT>
class intId {
public:
intId (const T &idIn);