&gt; I&#x27;d rather have it fail with as much noise as possible than have it covered...<p>RAII is orthogonal to contiguous storage in memory. You are not opting into heap fragmentation by moving your &quot;dealloc struct&quot; 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.