diff --git a/rx/include/rx/SharedCV.hpp b/rx/include/rx/SharedCV.hpp index 3c328933e..880956a96 100644 --- a/rx/include/rx/SharedCV.hpp +++ b/rx/include/rx/SharedCV.hpp @@ -46,6 +46,7 @@ protected: public: constexpr shared_cv() = default; + shared_cv(const shared_cv &) = delete; std::errc wait(std::unique_lock &lock, diff --git a/rx/include/rx/SharedMutex.hpp b/rx/include/rx/SharedMutex.hpp index 4b0d35b32..c6e1d9b88 100644 --- a/rx/include/rx/SharedMutex.hpp +++ b/rx/include/rx/SharedMutex.hpp @@ -27,6 +27,7 @@ class shared_mutex final { public: constexpr shared_mutex() = default; + shared_mutex(const shared_mutex &) = delete; bool try_lock_shared() { // Conditional increment