3 ms·
Overloading new (for the purpose, of e.g. adding a thread-local allocator) adds implicit global state that isn't always easy to manage.
by heavenlyblue 8y ago
Overloading new (for the purpose, of e.g. adding a thread-local allocator) adds implicit global state that isn't always easy to manage.
- gpderetta 8y agoSure, but no more than the standard allocator. Explicit allocator objects are a superior solution most of the time anyway.
- martinlaz 8y agoGood memory management is never easy on a system level, so if one is overloading new, they'd better be comfortable around the complexities involved.