diff --git a/src/sinqAxis.h b/src/sinqAxis.h index b827dc7..0ca0207 100644 --- a/src/sinqAxis.h +++ b/src/sinqAxis.h @@ -32,6 +32,13 @@ class HIDDEN sinqAxis : public asynMotorAxis { */ ~sinqAxis(); + /** + * @brief Delete the copy and copy assignment constructors, because this + * class should not be copied (it is tied to hardware!) + */ + sinqAxis(const sinqAxis &) = delete; + sinqAxis &operator=(const sinqAxis &) = delete; + /** * @brief Check if a poll should be performed. If yes, call `forcedPoll`. * diff --git a/src/sinqController.h b/src/sinqController.h index 91ed426..ba44f5c 100644 --- a/src/sinqController.h +++ b/src/sinqController.h @@ -58,6 +58,13 @@ class HIDDEN sinqController : public asynMotorController { */ virtual ~sinqController(void); + /** + * @brief Delete the copy and copy assignment constructors, because this + * class should not be copied (it is tied to hardware!) + */ + sinqController(const sinqController &) = delete; + sinqController &operator=(const sinqController &) = delete; + /** * @brief Overloaded function of asynMotorController *