A common interview question: Explain the difference between new and operator new.
I have googled, but could not find any real satisfying explanations. Can somebody explain the difference to me? And which one of these two can be overloaded, and when would you need to do that? Thanks!
myclass * p3 = (myclass*) operatornew (sizeof(myclass));
// (!) not the same as:
// myclass * p3 = new myclass;
// (constructor not called by function call, even for non-POD types)