mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Fixed syntax issue between GCC and Clang/Visual Studio
This commit is contained in:
parent
e4a6bc9c44
commit
0a41693271
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user