Skip to content
Snippets Groups Projects
Commit 8d49bfa8 authored by Max Kahnt's avatar Max Kahnt
Browse files

Let ComposedFunction have const references of subfunctions.

parent f6312778
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ public: ...@@ -31,7 +31,7 @@ public:
* \param f_ outer function for composition * \param f_ outer function for composition
* \param g_ inner function for composition * \param g_ inner function for composition
*/ */
ComposedFunction(OuterFunctionType& f_, InnerFunctionType& g_) : ComposedFunction(const OuterFunctionType& f_, const InnerFunctionType& g_) :
f(f_), f(f_),
g(g_) g(g_)
{} {}
...@@ -52,8 +52,8 @@ public: ...@@ -52,8 +52,8 @@ public:
~ComposedFunction(){} ~ComposedFunction(){}
private: private:
OuterFunctionType& f; const OuterFunctionType& f;
InnerFunctionType& g; const InnerFunctionType& g;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment