diff --git a/cpp/oneapi/dal/detail/threading.hpp b/cpp/oneapi/dal/detail/threading.hpp index 31e4a0631d4..a67d525855a 100644 --- a/cpp/oneapi/dal/detail/threading.hpp +++ b/cpp/oneapi/dal/detail/threading.hpp @@ -472,6 +472,8 @@ class scoped_lock { } scoped_lock(const scoped_lock &) = delete; scoped_lock(scoped_lock &&) = delete; + scoped_lock &operator=(scoped_lock &other) = delete; + scoped_lock &operator=(scoped_lock &&other) = delete; ~scoped_lock() { mutex_.unlock(); }