[roboptim-commit] [SCM] roboptim branch, share, updated. c74cec84ccfa048a86f06791500339575c6771cf
Status: Beta
Brought to you by:
flamiraux
|
From: Thomas M. <tho...@us...> - 2009-06-16 06:56:24
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "roboptim".
The branch, share has been updated
via c74cec84ccfa048a86f06791500339575c6771cf (commit)
from a53adc1a84735ceaf8071556387af2aec305d2e2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c74cec84ccfa048a86f06791500339575c6771cf
Author: Thomas Moulard <tho...@gm...>
Date: Tue Jun 16 15:54:09 2009 +0900
Do not use boost::make_shared.
* optimization-tests/hs071.hh: Here.
Signed-off-by: Thomas Moulard <tho...@gm...>
diff --git a/ChangeLog b/ChangeLog
index cdbb6dc..69eb95c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2009-06-16 Thomas Moulard <tho...@gm...>
+ Do not use boost::make_shared.
+ * optimization-tests/hs071.hh: Here.
+
+2009-06-16 Thomas Moulard <tho...@gm...>
+
Fix broken pkg-config.mk file.
* .gitignore: New.
* build-aux/pkg-config.mk: Fix variable names.
diff --git a/optimization-tests/hs071.hh b/optimization-tests/hs071.hh
index aa3e421..5a5c770 100644
--- a/optimization-tests/hs071.hh
+++ b/optimization-tests/hs071.hh
@@ -19,7 +19,6 @@
#ifndef OPTIMIZATION_TESTS_HS071_HH
# define OPTIMIZATION_TESTS_HS071_HH
# include <utility>
-# include <boost/make_shared.hpp>
# include <roboptim/core/twice-derivable-function.hh>
using namespace roboptim;
@@ -183,11 +182,11 @@ void initialize_problem (T& pb)
pb.argumentBounds ()[i] = Function::makeInterval (1., 5.);
// Add constraints.
- pb.addConstraint (boost::make_shared<G0> (),
- Function::makeLowerInterval (25.));
+ boost::shared_ptr<G0> g0 (new G0 ());
+ boost::shared_ptr<G1> g1 (new G1 ());
- pb.addConstraint (boost::make_shared<G1> (),
- Function::makeInterval (40., 40.));
+ pb.addConstraint (g0, Function::makeLowerInterval (25.));
+ pb.addConstraint (g1, Function::makeInterval (40., 40.));
// Set the starting point.
Function::vector_t start (pb.function ().inputSize ());
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
optimization-tests/hs071.hh | 9 ++++-----
2 files changed, 9 insertions(+), 5 deletions(-)
hooks/post-receive
--
roboptim
|