I have
class Foo { .... }
Is there a way for Foo to be able to separate out:
function blah() { Foo foo; // on the stack
I would recommend using smart pointers instead. By design, the class should have data and information about class. Book-keeping tasks should be delegated outside the class.
overloading new and delete can lead to more holes than you can imagine.