Re:Hidden Costs of Memory Allocation
by fla on Wednesday December 10, 2014 @10:40AM
(#8729696)
I think he meant that MyType is an enum and New is a user-defined function with a huge switch that does allocate (with placement new?) the correct type based on the value of MyType. Yea works, but introduces runtime overhead and is the gate to maintenance hell.
[ Parent
| on HN ]
There are no comments on this comment yet.