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

is()/as(): refactor of is() and as() for std::any and std::optional to new design (part 3 of n) #1251

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

filipsajdak
Copy link
Contributor

@filipsajdak filipsajdak commented Aug 20, 2024

Aligning implementation of is() and as() to the rest of the functions.

Keep them as separate functions to make them examples of how to extend is()/as() with custom-made functions.

This PR is based on #1203

@filipsajdak filipsajdak force-pushed the fsajdak-extension-of-is-part4 branch 2 times, most recently from 4960b77 to 4e3a1b5 Compare August 29, 2024 14:56
@filipsajdak
Copy link
Contributor Author

This PR has an experimental continuation here: #1267 that uses type_safety to handle failures.

@hsutter hsutter merged commit 2949161 into hsutter:main Sep 3, 2024
28 of 29 checks passed
@hsutter
Copy link
Owner

hsutter commented Sep 3, 2024

Thanks!

@filipsajdak filipsajdak deleted the fsajdak-extension-of-is-part4 branch September 3, 2024 22:18
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.

2 participants