Hello Gamedev people, I'm new here.
I have a question related to C++ std::exception.
Let's take this example:
int* ptr = new ;
for (int i = 0; i < 10; i++) ptr[i] = 10;
} catch(int x)
Does the allocated pointer is automatically deleted when exception is thrown?
Or, if not, how to handle it?
Basically I'm writing a game framework and as error-handling I'm using exceptions.