3 ms·
C++ lacks the necessary higher-level abstractions to write memory-safe code. It is vulnerable to iterator invalidation, use-after-free, dangling references, and
by pcwalton 12y ago
C++ lacks the necessary higher-level abstractions to write memory-safe code. It is vulnerable to iterator invalidation, use-after-free, dangling references, and so forth. RAII does not provide the necessary guarantees.
- tomjen3 12y agoPlease justify your last statement - RAII is often used with Smart Pointers (now in the standard library).