Skip to content

Commit 5702a07

Browse files
committed
Rule of 5 (7?)
1 parent 9c3c38f commit 5702a07

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

modules/squarepine_core/maths/MovingAccumulator.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ class MovingAccumulator final
1515
MovingAccumulator() noexcept = default;
1616

1717
/** Creates a copy of another MovingAccumulator. */
18-
MovingAccumulator (const MovingAccumulator& other) noexcept = default;
18+
MovingAccumulator (const MovingAccumulator&) noexcept = default;
1919

2020
/** Copies another MovingAccumulator into this one. */
21-
MovingAccumulator& operator= (const MovingAccumulator& other) noexcept = default;
21+
MovingAccumulator& operator= (const MovingAccumulator&) noexcept = default;
22+
23+
/** Creates a move of another MovingAccumulator. */
24+
MovingAccumulator (MovingAccumulator&&) noexcept = default;
25+
26+
/** Moves another MovingAccumulator into this one. */
27+
MovingAccumulator& operator= (MovingAccumulator&&) noexcept = default;
2228

2329
/** Destructor. */
2430
~MovingAccumulator() noexcept = default;

0 commit comments

Comments
 (0)