Closed ElijahPepe closed 2 years ago
throw new std::exception() will throw a pointer; since C++ is not garbage collected, dynamically allocating exceptions in this way is costly and can have unexpected behavior
Thanks!
throw new std::exception() will throw a pointer; since C++ is not garbage collected, dynamically allocating exceptions in this way is costly and can have unexpected behavior