Skip to content
Snippets Groups Projects
Commit 0c7f3bdd authored by Steffen Müthing's avatar Steffen Müthing
Browse files

[tupleutility.hh] std::make_index_sequence -> std::index_sequence_for

std::index_sequence_for has been made for this very situation...
parent 12cdf5da
No related branches found
No related tags found
1 merge request!82Feature/cleanup std utility
......@@ -87,9 +87,9 @@ namespace Dune {
template<class... Args, class Functor>
auto genericTransformTupleBackend(std::tuple<Args...>& t, Functor& f) ->
decltype(genericTransformTupleBackendImpl(t, f,Std::make_index_sequence<sizeof...(Args)>()))
decltype(genericTransformTupleBackendImpl(t, f,Std::index_sequence_for<Args...>{}))
{
return genericTransformTupleBackendImpl(t, f,Std::make_index_sequence<sizeof...(Args)>());
return genericTransformTupleBackendImpl(t, f,Std::index_sequence_for<Args...>{});
}
#endif
......@@ -193,9 +193,9 @@ namespace Dune {
template<class T>
inline auto operator()(T&& t) ->
decltype(this->apply(t,Std::make_index_sequence<sizeof...(Args)>())) const
decltype(this->apply(t,Std::index_sequence_for<Args...>{})) const
{
return apply(t,Std::make_index_sequence<sizeof...(Args)>());
return apply(t,Std::index_sequence_for<Args...>{});
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment