Hi all.
I've written my own class Complex, that stores complex numbers.
I've overloaded a whole bunch of operators so that you can work with them like with normal numbers.
Then i wanted to overload 'new', but I tried it before overloading, and it "seems" to be working.
I can write
Complex *ptr = new Complex;
And it works so far, but I'm not sure if it allocates enough space?
And delete doesn't work, because data is accessible after using delete.
Should I overload 'delete' and let 'new'? Or overload both?