diff options
-rw-r--r-- | core/fitter.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fitter.hpp b/core/fitter.hpp index cd76a20..cf47517 100644 --- a/core/fitter.hpp +++ b/core/fitter.hpp @@ -1707,7 +1707,8 @@ namespace opt_utilities copy construct
*/
statistic(const statistic& rhs)
- :p_fitter(rhs.p_fitter)
+ :func_obj<Ts,Tp>(static_cast<const func_obj<Ts,Tp>& >(rhs))
+ ,p_fitter(rhs.p_fitter)
{}
/**
|