--- parser3/src/include/pa_memory.h 2005/12/16 10:15:12 1.14 +++ parser3/src/include/pa_memory.h 2007/05/07 09:47:07 1.16 @@ -9,7 +9,7 @@ #ifndef PA_MEMORY_H #define PA_MEMORY_H -static const char * const IDENT_MEMORY_H="$Date: 2005/12/16 10:15:12 $"; +static const char * const IDENT_MEMORY_H="$Date: 2007/05/07 09:47:07 $"; // include @@ -77,9 +77,13 @@ inline void *pa_realloc(void *ptr, size_ return pa_fail_alloc("reallocate to", size); } -//{@ these operators are disabled, one should explicitely specify either new(UseGC) or new(PointerFreeGC) -inline void *operator new(size_t) { abort(); } // disabled -inline void *operator new[] (size_t) { abort(); } // disabled +//{@ these operators can be used from stl. to be on a safe side, assume that data may contain pointers +inline void *operator new[] (size_t size) { + return pa_malloc(size); +} +inline void *operator new(size_t size) { + return pa_malloc(size); +} //}@ #define UseGC ((int)1)