mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-04-19 22:39:03 +00:00
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.
This commit is contained in:
@@ -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 <typename T0, typename T1, typename T2>
|
||||
void TestY0Y1Y2(const std::string& output, T0 Y0, T1 Y1, T2 Y2)
|
||||
{
|
||||
std::stringstream expected;
|
||||
expected << "<Y0, Y1, Y2>: <" << Y0 << ", " << Y1 << ", " << Y2 << ">";
|
||||
EXPECT_TRUE(output.find(expected.str()) != std::string::npos);
|
||||
}
|
||||
void TestX0X1(const std::string& output, auto X0, auto X1)
|
||||
template <typename T0, typename T1>
|
||||
void TestX0X1(const std::string& output, T0 X0, T1 X1)
|
||||
{
|
||||
std::stringstream expected;
|
||||
expected << "<X0, X1>: <" << X0 << ", " << X1 << ">";
|
||||
|
||||
Reference in New Issue
Block a user