Skip to content

Commit

Permalink
[filter] disable incorrect copy and move support (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoisCarouge committed Dec 26, 2022
1 parent 21e16da commit 4df9dd4
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions include/fcarouge/kalman.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ class kalman final {
//! elements of the filter with.
//!
//! @complexity Constant.
inline constexpr kalman(const kalman &other) = default;
//!
//! @todo Implement and test.
inline constexpr kalman(const kalman &other) = delete;

//! @brief Move constructs a filter.
//!
Expand All @@ -273,7 +275,9 @@ class kalman final {
//! elements of the filter with.
//!
//! @complexity Constant.
inline constexpr kalman(kalman &&other) noexcept = default;
//!
//! @todo Implement and test.
inline constexpr kalman(kalman &&other) noexcept = delete;

//! @brief Copy assignment operator.
//!
Expand All @@ -287,7 +291,9 @@ class kalman final {
//! i.e. `*this`.
//!
//! @complexity Constant.
inline constexpr auto operator=(const kalman &other) -> kalman & = default;
//!
//! @todo Implement and test.
inline constexpr auto operator=(const kalman &other) -> kalman & = delete;

//! @brief Move assignment operator.
//!
Expand All @@ -303,8 +309,9 @@ class kalman final {
//! i.e. `*this`.
//!
//! @complexity Constant.
inline constexpr auto operator=(kalman &&other) noexcept
-> kalman & = default;
//!
//! @todo Implement and test.
inline constexpr auto operator=(kalman &&other) noexcept -> kalman & = delete;

//! @brief Destructs the kalman filter.
//!
Expand Down

0 comments on commit 4df9dd4

Please sign in to comment.