3 ms·
> … put it on the stack, put it in a unique_ptr on the stack. What happens when the stack frame gets destroyed but you kept a reference to the data around some
by UncleEntity 5y ago
> … put it on the stack, put it in a unique_ptr on the stack.
What happens when the stack frame gets destroyed but you kept a reference to the data around somewhere because you needed it for further compilation?
I, for one, am a fan of using the heap when doing the C++ things…