Skip to content

Rule: Header-only template default added

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

A default argument is added to a header-only class template parameter that had none. New uses may now omit the argument, while existing explicit-argument uses remain valid.

Canonical demonstration