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 304c75a commit 3180bfbCopy full SHA for 3180bfb
cpp/autosar/test/rules/A7-1-1/test.cpp
@@ -83,4 +83,16 @@ template <bool... Args> extern constexpr bool recurse_var = true; // COMPLIANT
83
template <bool B1, bool... Args>
84
extern constexpr bool recurse_var<B1, Args...> = B1 &&recurse_var<Args...>;
85
86
-void fp_621() { recurse_var<true, true, true>; }
+void fp_621() { recurse_var<true, true, true>; }
87
+
88
+#include <utility>
89
90
+void variadic_forwarding() {}
91
92
+template <typename T, typename... Args>
93
+void variadic_forwarding(T &&first, Args &&...rest) {
94
+ first;
95
+ variadic_forwarding(std::forward<Args>(rest)...);
96
+}
97
98
+int test_variadic_forwarding() { variadic_forwarding(1, 1.1, "a"); }
0 commit comments