From ad9378b5a387c48a8f9081b37510bc91d495d71c Mon Sep 17 00:00:00 2001 From: John Shumway Date: Wed, 27 Aug 2025 17:10:39 -0700 Subject: [PATCH] Replace auto with function template for c++17. (#2754) In #2443, a helper function was added test new print functionality, but it used auto for the function parameter types. We need to support c++17 for downstream libraries, so we cannot use auto there. This PR replaces it witht the equivalent function template implementation. [ROCm/composable_kernel commit: 9751583f951c066cd0a9a72b63047316b431096d] --- .../utility/print/test_print_static_encoding_pattern.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/ck_tile/utility/print/test_print_static_encoding_pattern.cpp b/test/ck_tile/utility/print/test_print_static_encoding_pattern.cpp index d1cb408b5c..3ff23e2e11 100644 --- a/test/ck_tile/utility/print/test_print_static_encoding_pattern.cpp +++ b/test/ck_tile/utility/print/test_print_static_encoding_pattern.cpp @@ -12,13 +12,15 @@ namespace ck_tile { class PrintStaticEncodingPatternTest : public PrintTest { protected: - void TestY0Y1Y2(const std::string& output, auto Y0, auto Y1, auto Y2) + template + void TestY0Y1Y2(const std::string& output, T0 Y0, T1 Y1, T2 Y2) { std::stringstream expected; expected << ": <" << Y0 << ", " << Y1 << ", " << Y2 << ">"; EXPECT_TRUE(output.find(expected.str()) != std::string::npos); } - void TestX0X1(const std::string& output, auto X0, auto X1) + template + void TestX0X1(const std::string& output, T0 X0, T1 X1) { std::stringstream expected; expected << ": <" << X0 << ", " << X1 << ">";