Skip to content
Snippets Groups Projects
Commit 5ff36db3 authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

Replace std::result_of by std::invoke_result_t

The former is deprecated, and not supported by all compilers anymore.
parent 1a54ff0d
Branches
No related tags found
1 merge request!85Replace std::result_of by std::invoke_result_t
Pipeline #66530 passed
......@@ -3,6 +3,7 @@
#include <cassert>
#include <functional>
#include <type_traits>
#include <dune/common/parametertree.hh>
......@@ -181,7 +182,7 @@ template <class LinearSolver>
auto truncateSymmetrically(LinearSolver&& linearSolver) {
return [linearSolver = std::move(linearSolver) ](
const auto& m, const auto& b, const auto& ignore) {
using Return = typename std::result_of<LinearSolver(decltype(m), decltype(b))>::type;
using Return = std::invoke_result_t<LinearSolver, decltype(m), decltype(b)>;
if (ignore.all())
return Return(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment