3 ms·
Adding to that, assume any C++ code can throw exceptions unless it's specifically stated it won't. If you're doing manual memory allocation in a function, your
by kaetemi 5y ago
Adding to that, assume any C++ code can throw exceptions unless it's specifically stated it won't.
If you're doing manual memory allocation in a function, your exception handling might be leaky. (gsl::finally is your friend.)