diff --git a/sys/cpp11-compat/include/riot/thread.hpp b/sys/cpp11-compat/include/riot/thread.hpp index 3f0dca01d..c49ac9b35 100644 --- a/sys/cpp11-compat/include/riot/thread.hpp +++ b/sys/cpp11-compat/include/riot/thread.hpp @@ -240,6 +240,10 @@ public: */ template explicit thread(F&& f, Args&&... args); + + /** + * @brief Disallow copy constructor for constant objects. + */ thread(const thread&) = delete; /** * @brief Move constructor. @@ -251,6 +255,9 @@ public: ~thread(); + /** + * @brief Disallow the assignment operator for constant objects. + */ thread& operator=(const thread&) = delete; /** * @brief Move assignment operator.