Skip to content

Commit

Permalink
Fixed syntax issue between GCC and Clang/Visual Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
jwellbelove committed Nov 11, 2024
1 parent 27492b4 commit d3ba653
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions include/etl/parameter_pack.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion test/test_parameter_pack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d3ba653

Please sign in to comment.