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 d3ba653 commit 7f66536
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 8 additions & 8 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
// //***********************************
// 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
1 change: 1 addition & 0 deletions support/Release notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Fixes:
#956 Fix build error (etl::circular_buffer)
#957 Support heterogenous lookup for maps
#959 Treat bitset with size_type
#972 template not allowed warning in parameter pack

Pull Requests:
#947 Remove unused git submodule config
Expand Down

0 comments on commit 7f66536

Please sign in to comment.