I am a Java developer who has recently gotten into c++. I've read several times that the new operator should be avoided as variables declared with it must be manually deleted. But then my question becomes: why should I ever use it?
Asked
Active
Viewed 63 times
-2
-
1There are rare valid use cases. – πάντα ῥεῖ Feb 10 '19 at 20:36
-
[When should I use the new keyword in C++?](https://stackoverflow.com/questions/655065/when-should-i-use-the-new-keyword-in-c) – kingW3 Feb 10 '19 at 20:45