|
|
|
|
|
by Skinney
4738 days ago
|
|
RAII doesn't save you from buffer overflows, or memory leaks when you need an object to live beyond the current scope. C arrays and pointers can still be used on the stack, and are sometimes simply the right tool for the job. While RAII greatly reduces memory leaks and enhances resource-management, it doesn't save you in all cases, which means there still is an overhead and you will still have to worry about it. |
|