Fixed syntax issue between GCC and Clang/Visual Studio

This commit is contained in:
John Wellbelove 2024-11-11 13:20:47 +00:00
parent e4a6bc9c44
commit 0a41693271
2 changed files with 8 additions and 8 deletions

View File

@ -134,17 +134,17 @@ namespace etl
inline constexpr size_t parameter_pack_v = etl::parameter_pack<TTypes...>::template index_of_type<T>::value;
#endif
#if ETL_USING_CPP17 && (!ETL_USING_GCC_COMPILER || (__GNUC__ > 7))
//***********************************
template <typename... TTypes>
template <typename T>
constexpr size_t parameter_pack<TTypes...>::template index_of_type<T>::value;
#else
//#if ETL_USING_CPP17 && !ETL_USING_GCC_COMPILER
// //***********************************
// template <typename... TTypes>
// template <typename T>
// constexpr size_t parameter_pack<TTypes...>::template index_of_type<T>::value;
//#else
//***********************************
template <typename... TTypes>
template <typename T>
constexpr size_t parameter_pack<TTypes...>::index_of_type<T>::value;
#endif
//#endif
}
#endif
#endif

View File

@ -34,7 +34,7 @@ namespace
{
using Pack = etl::parameter_pack<char, short, int>;
SUITE(test_type_lookup)
SUITE(test_parameter_pack)
{
//*************************************************************************
TEST(test_index_of_type)