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

Not only does the Itanium C++ ABI allow for using a pre-canned std::bad_alloc (because __cxa_allocate_exception() can do whatever it wants on an allocation failure), but most of the common implementations do just that.


I meant that the interface for __cxa_allocate_exception is designed in such a way that it cannot substitute std::bad_alloc for the exception being allocated.




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

Search: