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
{{ message }}
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.
The text was updated successfully, but these errors were encountered:
JamesKim2998
changed the title
How to denote function that cast from parent class to child class?
How to denote generic function that cast from parent class to child class?
May 6, 2017
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm now trying to cast parent class(Component) to child class(WeaponComponent).
So I made function
cast_to_weapon
,But as you can see, it's hard to reuse. Because, source type only can be Component, and destination type only can be WeaponComponent...
So I want to denote this like below,
How can this be possible?
The text was updated successfully, but these errors were encountered: