diff options
Diffstat (limited to 'interface')
-rw-r--r-- | interface/opt.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interface/opt.cc b/interface/opt.cc index 49113a1..7161cca 100644 --- a/interface/opt.cc +++ b/interface/opt.cc @@ -139,7 +139,7 @@ extern "C" } try { - std::auto_ptr<dopt::model> p(opt_utilities::get_model<double,double,std::vector<double>,std::string>(model_name)); + const dopt::model* p(opt_utilities::get_model<double,double,std::vector<double>,std::string>(model_name)); iter->second.fit.set_model(*p); return 0; } |