aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2011-01-27 16:57:22 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2011-01-27 16:57:22 +0000
commit37951dd29e4f89cc5d21707e91ec2b091fd7953a (patch)
tree940d2b8cc0ad7917b7e3138194936252c88b7c83
parent6b405dfa254e911494c7a75d6f458d1a59f77888 (diff)
downloadopt-utilities-37951dd29e4f89cc5d21707e91ec2b091fd7953a.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@169 ed2142bd-67ad-457f-ba7c-d818d4011675
-rw-r--r--interface/opt.cc2
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;
}