Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safe up downcast #109

Merged
merged 10 commits into from
Aug 2, 2022
Merged

Safe up downcast #109

merged 10 commits into from
Aug 2, 2022

Conversation

kenz-gelsoft
Copy link
Owner

@kenz-gelsoft kenz-gelsoft commented Jul 30, 2022

Close #107

  • Safe upcasting
    • From trait impls to convert to ancestor classes (except mix-in classes)
  • Safe downcasting
    • wxObject-derived classes impl DynamicCast trait which support dynamic cast with as_unowned<wx::Class>

@kenz-gelsoft kenz-gelsoft marked this pull request as ready for review August 2, 2022 15:37
@kenz-gelsoft kenz-gelsoft merged commit f75880b into main Aug 2, 2022
@kenz-gelsoft kenz-gelsoft deleted the safe_up_downcast branch August 2, 2022 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support up/down cast
1 participant