ned14 / status-code

Proposed SG14 status_code for the C++ standard
Other
64 stars 13 forks source link

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

Closed BurningEnlightenment closed 1 year ago

BurningEnlightenment commented 1 year ago

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 commented 1 year ago

Nice, thanks!