node icon indicating copy to clipboard operation
node copied to clipboard

src,build: add no user defined deduction guides of CTAD check

Open legendecas opened this issue 2 months ago • 5 comments

To our secondary C++ style guide:

Do not use CTAD with a given template unless the template's maintainers have opted into supporting use of CTAD by providing at least one explicit deduction guide (all templates in the std namespace are also presumed to have opted in). This should be enforced with a compiler warning if available.

Ref: https://google.github.io/styleguide/cppguide.html#CTAD

To use CTAD with a template, it must be defined with at least one deduction guide (std templates are defined with guides). Enforcing this rule with compiler checks.

legendecas avatar Nov 29 '24 10:11 legendecas