Corrected bugs and warnings in atomic_queue and LeakDetector
This commit is contained in:
parent
a1f3a10b09
commit
620dbb9380
2 changed files with 4 additions and 2 deletions
4
src/external/atomic_queue/atomic_queue.h
vendored
4
src/external/atomic_queue/atomic_queue.h
vendored
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -47,6 +47,8 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
LeakDetector& operator=(const LeakDetector&) = default;
|
||||
|
||||
private:
|
||||
struct ObjectCounter {
|
||||
ObjectCounter() = default;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue