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

Let SumGridFunction use const references for BaseType functions.

parent bf9512e6
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,7 @@ public:
* \param coefficient of summand function
* \param function summand (grid-)function to register
*/
virtual void registerFunction(double coefficient, BaseType& function)
virtual void registerFunction(double coefficient, const BaseType& function)
{
functions_.push_back(&function);
coefficients_.push_back(coefficient);
......@@ -121,7 +121,7 @@ public:
~SumGridFunction(){}
private:
std::vector<BaseType*> functions_;
std::vector<const BaseType*> functions_;
std::vector<double> coefficients_;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment