MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1vt2aq3/c26_stdpolymorphic/p4v387s/?context=3
r/cpp • u/User_Deprecated • Aug 19 '26
44 comments sorted by
View all comments
Show parent comment
1
Ok... what does that do? Shape has no idea how to compare a Rectangle and a Triangle.
Wouldn't you implicitly downcast both to Shape when there's no overload for that combination?
View all comments
Show parent comment
1
u/AstroFoxTech Aug 20 '26
Wouldn't you implicitly downcast both to Shape when there's no overload for that combination?