From 24d31df55af1fa576b265bcf870fe4b6eff872a7 Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Mon, 8 Jul 2019 22:19:13 -0700 Subject: [PATCH] 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. --- .../src/main/native/include/frc/trajectory/TrapezoidProfile.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wpilibc/src/main/native/include/frc/trajectory/TrapezoidProfile.h b/wpilibc/src/main/native/include/frc/trajectory/TrapezoidProfile.h index 920bf22264..6e0bf60316 100644 --- a/wpilibc/src/main/native/include/frc/trajectory/TrapezoidProfile.h +++ b/wpilibc/src/main/native/include/frc/trajectory/TrapezoidProfile.h @@ -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.