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

fix: Centralize the friend decls for nested status codes #62

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

BurningEnlightenment
Copy link
Collaborator

Rely on the fact that status_code_domain declares indirecting_domain as friend and upcast the domain implementation types in places where we access protected status_code_domain member functions. This removes the need for custom code-domains to befriend an implementation detail.

Rely on the fact that `status_code_domain` declares `indirecting_domain`
as `friend` and upcast the domain implementation types in places where
we access protected `status_code_domain` member functions. This removes
the need for custom code-domains to befriend an implementation detail.
@ned14 ned14 merged commit ff93ad2 into master Sep 8, 2023
5 checks passed
@ned14 ned14 deleted the dev/58-indirect_friends branch September 8, 2023 14:33
@ned14
Copy link
Owner

ned14 commented Sep 8, 2023

Nice, thanks!

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.

Friend declaration of indirecting_domain & nested_status_code/status_code_ptr in single header version
2 participants