2 ms·
Not everything can live on the stack. If you're not using new/delete in C++, you're probably not doing something very complicated. (And hey, that's not necessa
by rcfox 10y ago
Not everything can live on the stack.
If you're not using new/delete in C++, you're probably not doing something very complicated. (And hey, that's not necessarily a bad thing!)
- netheril96 10y agoThe resource manager (like std::vector or std::unique_ptr) can certainly live on the stack when the data it manages resides on the heap.
- saynsedit 10y agoRAII can wrap heap-allocated data. Also bss-allocated objects are common.