Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[filter] disable incorrect copy and move support #245

Merged
merged 1 commit into from
Dec 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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