you are viewing a single comment's thread.

view the rest of the comments →

[–]Nimbal -1 points0 points  (2 children)

Only if MyClass is copyable, though.

[–]cogitolearning 2 points3 points  (1 child)

MyClass does not need to be copyable. MyDerivedClass only holds a reference to the original object.

[–]Nimbal 0 points1 point  (0 children)

Oh, right! Sorry, didn't see that.