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

Overloading new (for the purpose, of e.g. adding a thread-local allocator) adds implicit global state that isn't always easy to manage.


Sure, but no more than the standard allocator. Explicit allocator objects are a superior solution most of the time anyway.


Good memory management is never easy on a system level, so if one is overloading new, they'd better be comfortable around the complexities involved.




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

Search: