Skip to content

Commit

Permalink
delete operators to avoid rule-of-five violation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cortes-intel committed Nov 29, 2024
1 parent f32ae79 commit 4704576
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpp/oneapi/dal/detail/threading.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 4704576

Please sign in to comment.