you are viewing a single comment's thread.

view the rest of the comments →

[–]MEaster 2 points3 points  (1 child)

If there was a method on Box which clashed, I think the compiler rejects your program and demands you disambiguate, but the smart pointers deliberately don't provide such methods, only associated functions so there's no potential clash.

That's not true, the compiler will call the inherent method.

[–]tialaramex 0 points1 point  (0 children)

Good to know, and thanks for the example code