Is it required in standard for class specific new, new[], delete, and delete[] to be static. Can i make them non-static member operators. And why is it required for them to be static
They are declared static implicitly -- even if you didn't type "static".
Yes it's required for them to be static. They are used to allocate memory for an object that does not yet exist hence there is no instance to refer to.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With