Skip to content

Improve diagnostics for ill-formed facade-aware overloads#29

Merged
mingxwa merged 1 commit intongcpp:mainfrom
mingxwa:user/mingxwa/ptr-diagnostics
Apr 23, 2026
Merged

Improve diagnostics for ill-formed facade-aware overloads#29
mingxwa merged 1 commit intongcpp:mainfrom
mingxwa:user/mingxwa/ptr-diagnostics

Conversation

@mingxwa
Copy link
Copy Markdown
Collaborator

@mingxwa mingxwa commented Apr 19, 2026

When a facade contains a convention with a facade-aware overload, but the overload is ill-formed when instantiated, the static_assert in proxy couldn't effectively report the issue. This is because the instantiation of its base classes assume details::conv_traits is applicable.

Changes

  • Moved the static assertion from proxy to details::conv_traits to fail earlier.
  • Removed applicability check from details::conv_traits and details::facade_traits since they are not used anymore.

@mingxwa mingxwa force-pushed the user/mingxwa/ptr-diagnostics branch from a21017b to dfee995 Compare April 20, 2026 13:16
@mingxwa mingxwa changed the title Improve diagnostics Improve diagnostics for ill-formed facade-aware overloads Apr 20, 2026
@mingxwa mingxwa merged commit 8cbf6db into ngcpp:main Apr 23, 2026
16 checks passed
@mingxwa mingxwa deleted the user/mingxwa/ptr-diagnostics branch April 23, 2026 14:12
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.

3 participants