operator new[] does not take 1 parameter

Started by
10 comments, last by Toolmaker 20 years, 6 months ago
Looking at the preprocessor directives at the bottom of your posted code, you only want to use the overloaded versions in DEBUG mode? In that case, try putting #ifdef _DEBUG around the declarations/definitions of the overloaded operators.
Advertisement
Well, I solved my problem. I renamed the thing to MemoryTracer, happy now? (Ok, stupid joke).

And, since I only want to trace any memory allocations done in debug mode, I placed everything between #ifdef _DEBUG ... #else #endif code. Problem solved.

Toolmaker


-Earth is 98% full. Please delete anybody you can.

This topic is closed to new replies.

Advertisement