[roboptim-commit] [SCM] roboptim branch, trajectory, updated. 75d55fdc3f4fc630c29161857a729342fd6a5
Status: Beta
Brought to you by:
flamiraux
From: Thomas M. <tho...@us...> - 2009-06-16 06:51:54
|
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, trajectory has been updated via 75d55fdc3f4fc630c29161857a729342fd6a5382 (commit) from 0353ccbd345bbd6f636079031a16c541fe200604 (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 75d55fdc3f4fc630c29161857a729342fd6a5382 Author: Thomas Moulard <tho...@gm...> Date: Tue Jun 16 15:49:40 2009 +0900 Do not use boost::make_shared. * include/roboptim/trajectory/freeze.hxx: Here. Signed-off-by: Thomas Moulard <tho...@gm...> diff --git a/ChangeLog b/ChangeLog index f6726f6..7fede25 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2009-06-16 Thomas Moulard <tho...@gm...> + Do not use boost::make_shared. + * include/roboptim/trajectory/freeze.hxx: Here. + +2009-06-16 Thomas Moulard <tho...@gm...> + Synchonize with share. * build-aux/pkg-config.mk: Here. diff --git a/include/roboptim/trajectory/freeze.hxx b/include/roboptim/trajectory/freeze.hxx index 1070257..e2137a5 100644 --- a/include/roboptim/trajectory/freeze.hxx +++ b/include/roboptim/trajectory/freeze.hxx @@ -17,8 +17,6 @@ #ifndef ROBOPTIM_TRAJECTORY_FREEZE_HXX # define ROBOPTIM_TRAJECTORY_FREEZE_HXX -# include <boost/make_shared.hpp> - # include <roboptim/core/numeric-linear-function.hh> namespace roboptim @@ -57,9 +55,10 @@ namespace roboptim b[0] = -it->second; - shared_ptr<C> ptr = static_pointer_cast<C> - (make_shared<NumericLinearFunction> (a, b)); - this->problem_.addConstraint (ptr, + NumericLinearFunction* ptr = new NumericLinearFunction (a, b); + shared_ptr<C> constraint = + static_pointer_cast<C> (shared_ptr<NumericLinearFunction> (ptr)); + this->problem_.addConstraint (constraint, Function::makeInterval (0., 0.)); } } ----------------------------------------------------------------------- Summary of changes: ChangeLog | 5 +++++ include/roboptim/trajectory/freeze.hxx | 9 ++++----- 2 files changed, 9 insertions(+), 5 deletions(-) hooks/post-receive -- roboptim |