mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
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:
committed by
Peter Johnson
parent
841ef5d739
commit
24d31df55a
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user