From 41d3c31a770727834653d038fa1c1967972fc89b Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <github@naumov.de>
Date: Tue, 28 Jul 2020 18:05:40 +0200
Subject: [PATCH] [ParL] Fix declaration of createFunctionParameter.

The error does not pop up when compiling a unity build.
---
 ParameterLib/FunctionParameter.h | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/ParameterLib/FunctionParameter.h b/ParameterLib/FunctionParameter.h
index 8a316c5f1fe..2dbb884c894 100644
--- a/ParameterLib/FunctionParameter.h
+++ b/ParameterLib/FunctionParameter.h
@@ -10,11 +10,11 @@
 
 #pragma once
 
+#include <exprtk.hpp>
 #include <utility>
 #include <vector>
 
-#include <exprtk.hpp>
-
+#include "MathLib/InterpolationAlgorithms/PiecewiseLinearInterpolation.h"
 #include "Parameter.h"
 #include "Utils.h"
 
@@ -147,6 +147,10 @@ private:
 };
 
 std::unique_ptr<ParameterBase> createFunctionParameter(
-    std::string const& name, BaseLib::ConfigTree const& config);
+    std::string const& name,
+    BaseLib::ConfigTree const& config,
+    std::map<std::string,
+             std::unique_ptr<MathLib::PiecewiseLinearInterpolation>> const&
+        curves);
 
 }  // namespace ParameterLib
-- 
GitLab