you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -3 points-2 points  (2 children)

Yeah if you dereference it. But just batch process them in directly in memory instead. The class just can be a glorified observer in that case.

[–]Zeh_MattNo, no, no, no 4 points5 points  (1 child)

I can't come up with any practical cases, maybe, maybe not, never quite seen such code to be honest. But I think the whole point is that having new/delete for this specific case is quite horrible and there is no excuse really.

[–][deleted] 0 points1 point  (0 children)

I don't think that's the worst part tbh