We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b09235f commit 507d34eCopy full SHA for 507d34e
cpp/common/test/rules/identifierhidden/test.cpp
@@ -32,5 +32,12 @@ void f3() {
32
template <typename T> constexpr bool foo = false; // COMPLIANT
33
34
namespace {
35
-template <typename T> bool foo<T> = true; // COMPLIANT
+template <typename T> bool foo = true; // COMPLIANT - omit variable templates
36
+}
37
+
38
+template <class T> constexpr T foo1 = T(1.1L);
39
40
+template <class T, class R> T f(T r) {
41
+ T v = foo1<T> * r * r; // COMPLIANT
42
+ T v1 = foo1<R> * r * r; // COMPLIANT
43
}
cpp/common/test/rules/identifierhidden/test1.cpp
0 commit comments