From 51f386261e426be1e7691effd3a19a4d2ec67a6c Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Tue, 14 Jun 2022 09:57:50 +0200 Subject: Drop copy constructor from atomic value --- src/buildtool/multithreading/atomic_value.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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 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; -- cgit v1.2.3