From 8d49bfa8bae743c702392f09b1d99150d0f973af Mon Sep 17 00:00:00 2001 From: Max Kahnt <max.kahnt@fu-berlin.de> Date: Mon, 7 Jul 2014 15:02:49 +0200 Subject: [PATCH] Let ComposedFunction have const references of subfunctions. --- dune/fufem/functions/composedfunction.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dune/fufem/functions/composedfunction.hh b/dune/fufem/functions/composedfunction.hh index 1058872e..e8affdb4 100644 --- a/dune/fufem/functions/composedfunction.hh +++ b/dune/fufem/functions/composedfunction.hh @@ -31,7 +31,7 @@ public: * \param f_ outer function for composition * \param g_ inner function for composition */ - ComposedFunction(OuterFunctionType& f_, InnerFunctionType& g_) : + ComposedFunction(const OuterFunctionType& f_, const InnerFunctionType& g_) : f(f_), g(g_) {} @@ -52,8 +52,8 @@ public: ~ComposedFunction(){} private: - OuterFunctionType& f; - InnerFunctionType& g; + const OuterFunctionType& f; + const InnerFunctionType& g; }; -- GitLab