Skip to content

Commit d3ba653

Browse files
committed
Fixed syntax issue between GCC and Clang/Visual Studio
1 parent 27492b4 commit d3ba653

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

include/etl/parameter_pack.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,17 @@ namespace etl
134134
inline constexpr size_t parameter_pack_v = etl::parameter_pack<TTypes...>::template index_of_type<T>::value;
135135
#endif
136136

137-
#if ETL_USING_CPP17 && (!ETL_USING_GCC_COMPILER || (__GNUC__ > 7))
138-
//***********************************
139-
template <typename... TTypes>
140-
template <typename T>
141-
constexpr size_t parameter_pack<TTypes...>::template index_of_type<T>::value;
142-
#else
137+
//#if ETL_USING_CPP17 && !ETL_USING_GCC_COMPILER
138+
// //***********************************
139+
// template <typename... TTypes>
140+
// template <typename T>
141+
// constexpr size_t parameter_pack<TTypes...>::template index_of_type<T>::value;
142+
//#else
143143
//***********************************
144144
template <typename... TTypes>
145145
template <typename T>
146146
constexpr size_t parameter_pack<TTypes...>::index_of_type<T>::value;
147-
#endif
147+
//#endif
148148
}
149149
#endif
150150
#endif

test/test_parameter_pack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace
3434
{
3535
using Pack = etl::parameter_pack<char, short, int>;
3636

37-
SUITE(test_type_lookup)
37+
SUITE(test_parameter_pack)
3838
{
3939
//*************************************************************************
4040
TEST(test_index_of_type)

0 commit comments

Comments
 (0)