Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Code lacks try/catch exception handling #22

Open
matthewvon opened this Issue · 1 comment

3 participants

@matthewvon

Memory allocations ("new") and some stl operations are designed to "throw". The code has no handling of "throw" operations.

@chardan

More broadly, we'll just have to think about how we want or don't want to handle exceptions in there-- there is also a form of new that explicitly does not throw exceptions, operator new(std::nothrow):

#include

int main()
{
char *x = new(std::nothrow) char[10];
delete x;
}

@evanmcc evanmcc added this to the 2.1 milestone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.