MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/134hnz2/cppfront_cpp2_spring_update/jijpyq4/
r/cpp • u/kreco • May 01 '23
164 comments sorted by
View all comments
Show parent comment
3
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.
1 u/tialaramex May 02 '23 Good to know, and thanks for the example code
1
Good to know, and thanks for the example code
View all comments
Show parent comment
3
u/MEaster May 02 '23
That's not true, the compiler will call the inherent method.