FAQ 30.17 Why do programs that use realloc() to reallocate an array of objects crash?When realloc() needs to move the storage that is being reallocated, it uses bitwise copy rather than invoking the appropriate constructor for the newly allocated objects. Use realloc() only for objects guaranteed to be bitwise copyable. |