From d3ba653e37906678ceb62fcdf2b95e25649ed9a3 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Mon, 11 Nov 2024 13:20:47 +0000 Subject: [PATCH] Fixed syntax issue between GCC and Clang/Visual Studio --- include/etl/parameter_pack.h | 14 +++++++------- test/test_parameter_pack.cpp | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/etl/parameter_pack.h b/include/etl/parameter_pack.h index a5e5ee7f2..270d0ff75 100644 --- a/include/etl/parameter_pack.h +++ b/include/etl/parameter_pack.h @@ -134,17 +134,17 @@ namespace etl inline constexpr size_t parameter_pack_v = etl::parameter_pack::template index_of_type::value; #endif -#if ETL_USING_CPP17 && (!ETL_USING_GCC_COMPILER || (__GNUC__ > 7)) - //*********************************** - template - template - constexpr size_t parameter_pack::template index_of_type::value; -#else +//#if ETL_USING_CPP17 && !ETL_USING_GCC_COMPILER +// //*********************************** +// template +// template +// constexpr size_t parameter_pack::template index_of_type::value; +//#else //*********************************** template template constexpr size_t parameter_pack::index_of_type::value; -#endif +//#endif } #endif #endif diff --git a/test/test_parameter_pack.cpp b/test/test_parameter_pack.cpp index 4c8adf8b6..83aa08d66 100644 --- a/test/test_parameter_pack.cpp +++ b/test/test_parameter_pack.cpp @@ -34,7 +34,7 @@ namespace { using Pack = etl::parameter_pack; - SUITE(test_type_lookup) + SUITE(test_parameter_pack) { //************************************************************************* TEST(test_index_of_type)