Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For exception-less C++, you'd declare an operator new() that doesn't throw exceptions and just returns NULL on allocation failure along with a simple constructor and a followup explicitly-called init() method that does the real work which might fail and returns an error value on failure.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: