3 ms·
Yeah, doesn't make sense. Pointers are less useful in C++, because we have better things now.
by ncmncm 5y ago
Yeah, doesn't make sense. Pointers are less useful in C++, because we have better things now.
- junon 5y agoOf course we do. You still need to know how pointers work to use RAII effectively, though.
- pjmlp 5y agoNot at all, because RAII is about constructors/destructors, and not at all about pointers. Heap allocated data is one special case of OS resources that can be managed by constructor/destructor pairs.