--- parser3/src/include/pa_hash.h 2009/04/15 07:46:43 1.70 +++ 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/15 07:46:43 $"; +static const char * const IDENT_HASH_H="$Date: 2009/04/18 00:33:56 $"; #include "pa_memory.h" #include "pa_types.h" @@ -114,6 +114,19 @@ 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) { if(!value) {