|
|
|
|
|
by nanolith
3537 days ago
|
|
One does not need to ever use malloc()/free() or new/delete in C++. For instance, it is very common to use just the DATA and BSS segments in embedded code, and rely on placement-new, which is always deterministic. Dynamic memory allocation is also a choice in C++. |
|
My problem when I used to code in C++ was working with others in corporate projects.
It didn't matter how I strived to write modern code, making use of best practices to write safe code, there were always team members that never moved beyond C with Classes and nevermind having some processes in place to avoid precisely that.
Even nowadays, I get the feeling most developers don't make any use of static analysis.