Skip to content

Drop the unused Nullable parameter of the conversion accessor - #92

Merged
mingxwa merged 1 commit into
ngcpp:feature/v5from
mingxwa:user/mingxwa/drop-cast-nullable
Oct 6, 2026
Merged

mingxwa merged 1 commit into
ngcpp:feature/v5from
mingxwa:user/mingxwa/drop-cast-nullable

Conversation

@mingxwa

@mingxwa mingxwa commented Sep 26, 2026

Copy link
Copy Markdown
Member

Refactoring. No functional change.

cast_dispatch_base took a Nullable parameter so that the accessor of
substitution_dispatch could convert an empty proxy to an empty proxy
without invoking the dispatch. substitution_dispatch has been gone
since ngcpp#84, and both remaining users, implicit_conversion_dispatch and
explicit_conversion_dispatch, pass false, so the branch it guarded was
never instantiated.
@mingxwa
mingxwa merged commit 40c375b into ngcpp:feature/v5 Oct 6, 2026
18 checks passed
@mingxwa
mingxwa deleted the user/mingxwa/drop-cast-nullable branch October 6, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant