Nick's answer is a good starting point, but incomplete, as you actually need to overload:
private:
void* operator new(size_t); //standard new
void* operator new(size_t, void*); //placement new
void* operator new[](size_t); //array new
void* operator new[](size_t, void*);//placement array new
(अच्छा कोडिंग अभ्यास सुझाव देगा कि आपको हटाना अधिभारित करना चाहिए और [] ऑपरेटरों को हटा देना चाहिए - मैं चाहता हूं, लेकिन चूंकि उन्हें कॉल नहीं किया जा रहा है, यह वास्तव में आवश्यक नहीं है।)
Pauldoo is also correct that this doesn't survive aggregating on Foo, although it does survive inheriting from Foo. You could do some template meta-programming magic to HELP prevent this, but it would not be immune to "evil users" and thus is probably not worth the complication. Documentation of how it should be used, and code review to ensure it is used properly, are the only ~100% way.