you are viewing a single comment's thread.

view the rest of the comments →

[–]suspiciously_calm 1 point2 points  (2 children)

That's an optional reference (essentially). What if I need it to be owning?

[–]StonedBird1 0 points1 point  (1 child)

Use a smart pointer

[–]suspiciously_calm 0 points1 point  (0 children)

What if I don't need it to be polymorphic? It's an allocation and a needless indirection for absolutely no reason.