Comment by canucker2016
19 hours ago
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.
No comments yet
Contribute on Hacker News ↗