--- parser3/src/include/pa_array.h 2009/04/18 00:33:56 1.74 +++ parser3/src/include/pa_array.h 2009/04/29 03:26:38 1.76 @@ -8,7 +8,7 @@ #ifndef PA_ARRAY_H #define PA_ARRAY_H -static const char * const IDENT_ARRAY_Y="$Date: 2009/04/18 00:33:56 $"; +static const char * const IDENT_ARRAY_Y="$Date: 2009/04/29 03:26:38 $"; // includes @@ -85,7 +85,8 @@ public: #ifdef USE_DESTRUCTORS inline ~Array(){ - free(felements); + if(felements) + free(felements); } #endif @@ -194,6 +195,10 @@ public: return T(0); } + inline T* ptr(size_t index){ + return felements + index; + } + protected: bool is_full() {