Skip to content

Commit

Permalink
Fix missing virtual destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerjw authored and bmagyar committed Sep 16, 2020
1 parent cc3f96b commit b3e8397
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ namespace joint_trajectory_controller
template<class SegmentImpl>
class TrajectoryBuilder
{
public:
/**
* @brief Virtual destructor because this class is a base class.
*/
virtual ~TrajectoryBuilder<SegmentImpl>() = default;

private:
using Segment = JointTrajectorySegment<SegmentImpl>;
using TrajectoryPerJoint = std::vector<Segment>;
Expand Down Expand Up @@ -93,7 +99,7 @@ class TrajectoryBuilder
*/
virtual void reset();

public:
public:
/**
* @brief Creates the type of trajectory described by the builder.
*
Expand Down

0 comments on commit b3e8397

Please sign in to comment.