Skip to content
Snippets Groups Projects

Changed the deprecated auto_ptr to the unique_ptr.

Merged Sergi Hernandez requested to merge ubuntu_18_04 into master
6 files
+ 50
7
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 1
1
@@ -623,7 +623,7 @@ class CTrajectory
}
// load the new trajectory
std::cout << "read file " << filename << std::endl;
std::auto_ptr<traj_t> traj(trajectory(filename.c_str(),xml_schema::flags::dont_validate));
std::unique_ptr<traj_t> traj(trajectory(filename.c_str(),xml_schema::flags::dont_validate));
if(traj->num_motors()!=(this->motor_control->*this->get_num_motors_fnct)())
{
this->motion_access.exit();
Loading