
overriding operator new[] - (VC 4.2)
I am exporting classes from a DLL and must restrict consumers of the DLL to
free store allocation within the DLL. I want the memory management to be
transparent, so I have overridden operator new for each class.
My problem is that the compiler is {*filter*} on the following operator new[]
declaration:
class EXPORTING_STUFF ClassName
{
...
void* operator new[](size_t nSize);
...
Quote:
};
The normal operator new overrides without any problem. It's the array
version that chokes.
Does version 4.2 of the compiler not allow operator new[] to be overriden
within a class? For various reasons I am not able to use the Standard C++
Library, so allocators are out.
Thanks in advance for any help.