Closed Katharina-R closed 5 years ago
std::shared_ptr(new char[size]); creates an alloc-dealloc mismatch as the shared pointer automatically calls delete (and not delete[] ). The shared pointer will now call delete[].
Thanks!
std::shared_ptr(new char[size]); creates an alloc-dealloc mismatch as the shared pointer automatically calls delete (and not delete[] ). The shared pointer will now call delete[].