Closed
Description
Affected rules
A7-1-7
Description
In a template class or template function we may report the same logical expression in multiple template instantiations.
Example
template <typename T>
class Foo {
void bar(T t) { t; } // COMPLIANT - but erroneously reported
};
void test() {
Foo<int> i;
Foo<float> f;
i.bar(1);
f.bar(1.0f);
}
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Closed (Duplicate)