Skip to content
Snippets Groups Projects
Commit fd1e687a authored by Felix Gruber's avatar Felix Gruber Committed by Felix Gruber
Browse files

[bugfix] make genericTransformTuple work on const tuples

This makes tupleutilitytest succeed again.
parent 0157e52c
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,13 @@ namespace Dune {
{
return genericTransformTupleBackendImpl(t, f,Std::index_sequence_for<Args...>{});
}
template<class... Args, class Functor>
auto genericTransformTupleBackend(const std::tuple<Args...>& t, Functor& f) ->
decltype(genericTransformTupleBackendImpl(t, f, Std::index_sequence_for<Args...>{}))
{
return genericTransformTupleBackendImpl(t, f, Std::index_sequence_for<Args...>{});
}
#endif
/**
......
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