diff --git a/lib/include/srslte/common/fsm.h b/lib/include/srslte/common/fsm.h index b2cfe2313..b68012bec 100644 --- a/lib/include/srslte/common/fsm.h +++ b/lib/include/srslte/common/fsm.h @@ -371,8 +371,6 @@ public: &get_unchecked()); } } - state_list(state_list&&) noexcept = default; - state_list& operator=(state_list&&) noexcept = default; template bool is() const @@ -417,8 +415,6 @@ public: }; explicit fsm_t(srslte::log_ref log_) : log_h(log_) {} - fsm_t(fsm_t&&) noexcept = default; - fsm_t& operator=(fsm_t&&) noexcept = default; // Push Events to FSM template @@ -542,8 +538,8 @@ public: static const bool is_nested = true; explicit nested_fsm_t(ParentFSM* parent_fsm_) : fsm_t(parent_fsm_->get_log()), fsm_ptr(parent_fsm_) {} - nested_fsm_t(nested_fsm_t&&) noexcept = default; - nested_fsm_t& operator=(nested_fsm_t&&) noexcept = default; + nested_fsm_t(nested_fsm_t&&) = default; + nested_fsm_t& operator=(nested_fsm_t&&) = default; // Get pointer to outer FSM in case of HSM const parent_t* parent_fsm() const { return fsm_ptr; } diff --git a/lib/test/common/fsm_test.cc b/lib/test/common/fsm_test.cc index 08e6aaaff..c219c4683 100644 --- a/lib/test/common/fsm_test.cc +++ b/lib/test/common/fsm_test.cc @@ -63,8 +63,8 @@ public: }; explicit fsm2(fsm1* f_) : nested_fsm_t(f_) {} - fsm2(fsm2&&) noexcept = default; - fsm2& operator=(fsm2&&) noexcept = default; + fsm2(fsm2&&) = default; + fsm2& operator=(fsm2&&) = default; ~fsm2() { log_h->info("%s being destroyed!", get_type_name(*this).c_str()); } private: