Closed Riateche closed 4 years ago
Investigate if AsRef, AsMut, Borrow, Deref traits should be implemented to convert from &T1 to &T2 if T1 is a C++ subclass or T2.
&T1
&T2
T1
T2
Deref and cpp_utils::StaticUpcast are now implemented for derived classes.
Deref
cpp_utils::StaticUpcast
Investigate if AsRef, AsMut, Borrow, Deref traits should be implemented to convert from
&T1
to&T2
ifT1
is a C++ subclass orT2
.