Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"If the object is being created as part of a new expression, and an exception is thrown, the object’s memory is deallocated by calling the appropriate deallocation function. If the object is being created with a placement new operator, the corresponding placement delete operator is called—that is, the delete function that takes the same additional parameters as the placement new operator. If no matching placement delete is found, no deallocation takes place." So to avoid memory leaks, we need to implement placement delete operators that correspond to our placement new, which we use for leak detection (ironically) in debug builds.
- Loading branch information