From adb10a480e8789263c95b0107b92a0dc1d47ab50 Mon Sep 17 00:00:00 2001 From: artivis <deray.jeremie@gmail.com> Date: Tue, 29 May 2018 15:11:08 +0200 Subject: [PATCH] StateBlock not copyable/movable --- src/state_block.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/state_block.h b/src/state_block.h index 9fe7c0074..75af37ae6 100644 --- a/src/state_block.h +++ b/src/state_block.h @@ -74,6 +74,11 @@ public: **/ StateBlock(const Eigen::VectorXs& _state, bool _fixed = false, LocalParametrizationBasePtr _local_param_ptr = nullptr); + ///< Explicitly not copyable/movable + StateBlock(const StateBlock& o) = delete; + StateBlock(StateBlock&& o) = delete; + StateBlock& operator=(const StateBlock& o) = delete; + /** \brief Destructor **/ virtual ~StateBlock(); -- GitLab