--- parser3/src/include/pa_hash.h 2009/04/17 13:13:09 1.71 +++ parser3/src/include/pa_hash.h 2009/04/18 00:33:56 1.73 @@ -17,7 +17,7 @@ #ifndef PA_HASH_H #define PA_HASH_H -static const char * const IDENT_HASH_H="$Date: 2009/04/17 13:13:09 $"; +static const char * const IDENT_HASH_H="$Date: 2009/04/18 00:33:56 $"; #include "pa_memory.h" #include "pa_types.h" @@ -114,9 +114,18 @@ public: } } +#ifdef USE_DESTRUCTORS ~Hash() { + Pair **ref=refs; + for(int index=0; indexlink; + delete pair; + pair=next; + } delete[] refs; } +#endif /// put a [value] under the [key] @returns existed or not bool put(K key, V value) {