Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Code lacks try/catch exception handling #22

Open
matthewvon opened this Issue Jul 13, 2012 · 1 comment

Comments

Projects
None yet
3 participants
Contributor

matthewvon commented Jul 13, 2012

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

Contributor

chardan commented Jul 13, 2012

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 May 12, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment