new new[] delete delete[] operators
new new[] delete delete[] operators
Is is required to implements these operators even if i'm not going to use them?
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: new new[] delete delete[] operators
I you truly don't use array new/delete then there's no need for them.
Your linker will let you know if you screwed up your assumption
Your linker will let you know if you screwed up your assumption
-
- Member
- Posts: 595
- Joined: Mon Jul 05, 2010 4:15 pm
Re: new new[] delete delete[] operators
No, you can skip implementing those if you want to. You might want to implement placement new so that you can run the constructors of the objects but that's just a few lines of code.Skirox wrote:Is is required to implements these operators even if i'm not going to use them?