Skip to content
Snippets Groups Projects
Commit c480ec27 authored by Elias Pipping's avatar Elias Pipping
Browse files

Use a typedef

parent d0c0a5ea
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -140,9 +140,9 @@ template <class LinearSolver>
auto truncate(LinearSolver&& linearSolver) {
return [&, localSolver = std::move(linearSolver) ](
const auto& m, const auto& b, const auto& ignore) {
using Return = typename std::result_of<LinearSolver(decltype(m), decltype(b))>::type;
if (ignore.all())
return typename std::result_of<
LinearSolver(decltype(m), decltype(b))>::type{0};
return Return{0};
if (ignore.none())
return linearSolver(m, b);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment