You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it is covered by [expr.dynamic.cast#8.1], namely T is the type of the most derived object while the v is a subobject thereof.
If, in the most derived object pointed (referred) to by v, v points (refers) to a public base class subobject of a C object, and if only one object of type C is derived from the subobject pointed (referred) to by v the result points (refers) to that C object.
C may be the type of the most derived object or the one base class subobject of which the v is a subobject.
See https://eel.is/c++draft/expr.dynamic.cast#7 and https://eel.is/c++draft/expr.dynamic.cast#8. In the runtime check,
C
is always the type of a base class subobject of the most derived object. The case whenT
is the most derived class is not specified.The text was updated successfully, but these errors were encountered: