Skip to content

Rule: Header-only template default changed

Canonical rule slug: header-only-template-default-changed. ← back to all rules

A class template's default argument changes in a public header that nothing exports or names. The change is recorded as template_param_default_changed (API_BREAK) on clang; castxml cannot record the default, so it reports a template-default assurance gap and a source-replay risk instead.

Canonical demonstration