diff options
-rw-r--r-- | src/buildtool/multithreading/atomic_value.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buildtool/multithreading/atomic_value.hpp b/src/buildtool/multithreading/atomic_value.hpp index 2c108a96..5cef8a65 100644 --- a/src/buildtool/multithreading/atomic_value.hpp +++ b/src/buildtool/multithreading/atomic_value.hpp @@ -12,8 +12,7 @@ template <class T> class AtomicValue { public: AtomicValue() noexcept = default; - AtomicValue(AtomicValue const& other) noexcept - : data_{other.data_.load()} {} + AtomicValue(AtomicValue const& other) noexcept = delete; AtomicValue(AtomicValue&& other) noexcept : data_{other.data_.load()} {} ~AtomicValue() noexcept = default; |