3 ms·
> I'd rather have it fail with as much noise as possible than have it covered... RAII is orthogonal to contiguous storage in memory. You are not opting into he
by autoreleasepool 11y ago
> I'd rather have it fail with as much noise as possible than have it covered...
RAII is orthogonal to contiguous storage in memory. You are not opting into heap fragmentation by moving your "dealloc struct" function from the global namespace to a destructor. It has nothing to do with the the memory layout. It has to do with preventing memory leaks and undefined behavior.