Corrected bugs and warnings in atomic_queue and LeakDetector

This commit is contained in:
Paul Fd 2020-03-14 22:56:33 +01:00
parent a1f3a10b09
commit 620dbb9380
2 changed files with 4 additions and 2 deletions

View file

@ -150,7 +150,7 @@ protected:
// The special member functions are not thread-safe.
AtomicQueueCommon() noexcept = default;
AtomicQueueCommon() = default;
AtomicQueueCommon(AtomicQueueCommon const& b) noexcept
: head_(b.head_.load(X))
@ -417,7 +417,7 @@ class AtomicQueue2 : public AtomicQueueCommon<AtomicQueue2<T, SIZE, MINIMIZE_CON
public:
using value_type = T;
AtomicQueue2() noexcept = default;
AtomicQueue2() = default;
AtomicQueue2(AtomicQueue2 const&) = delete;
AtomicQueue2& operator=(AtomicQueue2 const&) = delete;
};

View file

@ -47,6 +47,8 @@ public:
}
}
LeakDetector& operator=(const LeakDetector&) = default;
private:
struct ObjectCounter {
ObjectCounter() = default;