Make sure move constructor is generated for TrapezoidProfile (#1757)

This wasn't necessarily the case before because defining a nondefault
constructor results in no default move constructor.
This commit is contained in:
Tyler Veness
2019-07-08 22:19:13 -07:00
committed by Peter Johnson
parent 841ef5d739
commit 24d31df55a

View File

@@ -68,6 +68,9 @@ class TrapezoidProfile {
TrapezoidProfile(Constraints constraints, State goal,
State initial = State{0_m, 0_mps});
TrapezoidProfile(TrapezoidProfile&&) = default;
TrapezoidProfile& operator=(TrapezoidProfile&&) = default;
/**
* Calculate the correct position and velocity for the profile at a time t
* where the beginning of the profile was at time t = 0.