From b03f466d98f28907714f93e96a68cd7cfacf1db5 Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Tue, 11 Oct 2022 18:54:19 +0200
Subject: [PATCH] [tabulatedcomp] Use const& instead of && to receive member
 function

---
 dumux/material/components/tabulatedcomponent.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dumux/material/components/tabulatedcomponent.hh b/dumux/material/components/tabulatedcomponent.hh
index cda51360ae..f769df9cd2 100644
--- a/dumux/material/components/tabulatedcomponent.hh
+++ b/dumux/material/components/tabulatedcomponent.hh
@@ -948,7 +948,7 @@ private:
     //! returns an interpolated value depending on temperature and pressure
     template<class GetPIdx, class MinPFunc, class MaxPFunc>
     static Scalar interpolateTP_(const std::vector<typename RawComponent::Scalar>& values, Scalar T, Scalar p,
-                                 GetPIdx&& getPIdx, MinPFunc&& minP, MaxPFunc&& maxP)
+                                 const GetPIdx& getPIdx, const MinPFunc& minP, const MaxPFunc& maxP)
     {
         Scalar alphaT = tempIdx_(T);
         if (alphaT < 0 || alphaT >= nTemp_ - 1) {
-- 
GitLab