File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
power_grid_model_c/power_grid_model/include/power_grid_model/main_core Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ namespace power_grid_model::main_core::utils {
1515namespace detail {
1616
1717template <typename Tuple, class Functor , std::size_t ... Indices>
18- constexpr void run_functor_with_tuple_index_return_void (Functor functor, std::index_sequence<Indices...>) {
18+ constexpr void run_functor_with_tuple_index_return_void (Functor functor, std::index_sequence<Indices...> /* unused */ ) {
1919 (functor.template operator ()<std::tuple_element_t <Indices, Tuple>>(), ...);
2020}
2121
Original file line number Diff line number Diff line change @@ -25,19 +25,14 @@ template <typename Tuple>
2525using tuple_type_identities_to_tuple_types_t = typename tuple_type_identities_to_tuple_types<Tuple>::type;
2626
2727template <typename ... Types, typename ... SelectTypes>
28- constexpr auto filter_tuple_types (std::tuple<std::type_identity<Types>...> /* types */ ,
29- std::tuple<std::type_identity<SelectTypes>...> /* select_types */ ) {
28+ constexpr auto filter_tuple_types (std::tuple<std::type_identity<Types>...> /* unused */ ,
29+ std::tuple<std::type_identity<SelectTypes>...> /* unused */ ) {
3030 constexpr auto sub_type_in_type = []<typename T>() { return (std::is_same_v<T, SelectTypes> || ...); };
3131
3232 return std::tuple_cat (std::conditional_t <sub_type_in_type.template operator ()<Types>(),
3333 std::tuple<std::type_identity<Types>>, std::tuple<>>{}...);
3434}
3535
36- template <typename Tuple, class Functor , std::size_t ... Indices>
37- constexpr void run_functor_with_tuple_index_return_void (Functor functor, std::index_sequence<Indices...>) {
38- (functor.template operator ()<std::tuple_element_t <Indices, Tuple>>(), ...);
39- }
40-
4136} // namespace detail
4237
4338template <class T , class U > struct MainModelType ;
You can’t perform that action at this time.
0 commit comments