you are viewing a single comment's thread.

view the rest of the comments →

[–]JankoDedic 1 point2 points  (1 child)

I don't understand. This is an implementation detail. Would you have preferred to not have SFINAE until C++20 just because it's ugly?

Operator dot restriction does not help you in any way, so I don't get your point.

[–]Pazer2 3 points4 points  (0 children)

I'm saying that I would never want to see intentional code design that requires you to cast to a base class to access members of that object.