Re:I disagree with Linus Torvalds about C++ (2009)
by atilaneves on Monday December 24, 2018 @06:58AM
(#18751753)
You can overload operator new to not use the heap. You can use allocators.
[ Parent
| on HN ]
Re:I disagree with Linus Torvalds about C++ (2009)
by heavenlyblue on Monday December 24, 2018 @07:00AM
(#18751763)
Overloading new (for the purpose, of e.g. adding a thread-local allocator) adds implicit global state that isn't always easy to manage.
Re:I disagree with Linus Torvalds about C++ (2009)
by gpderetta on Monday December 24, 2018 @08:47AM
(#18752099)
Sure, but no more than the standard allocator. Explicit allocator objects are a superior solution most of the time anyway.