diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-06-14 09:57:50 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-07-04 16:06:47 +0200 |
commit | 51f386261e426be1e7691effd3a19a4d2ec67a6c (patch) | |
tree | c0b9e07e2c4b6761f8bbb9fd6cefd177def6ec39 /src/buildtool/multithreading/atomic_value.hpp | |
parent | 1412b4c7b1d3e50f296eae188b62bf9623e81288 (diff) | |
download | justbuild-51f386261e426be1e7691effd3a19a4d2ec67a6c.tar.gz |
Drop copy constructor from atomic value
Diffstat (limited to 'src/buildtool/multithreading/atomic_value.hpp')
-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; |