aboutsummaryrefslogtreecommitdiffstats
path: root/alc/ringbuffer.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-11 03:59:53 -0700
committerChris Robinson <[email protected]>2019-09-11 03:59:53 -0700
commit5b37e2339bc91de3424b51600c3d3b96401d0b9c (patch)
tree4f816457b227ee511563b9b6f0d3fa91bd70b814 /alc/ringbuffer.h
parentc6c50484160435ee96e51eece154013fe6e48237 (diff)
Simplify flexible array member usage
Diffstat (limited to 'alc/ringbuffer.h')
-rw-r--r--alc/ringbuffer.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/alc/ringbuffer.h b/alc/ringbuffer.h
index 84139b66..3151fdcb 100644
--- a/alc/ringbuffer.h
+++ b/alc/ringbuffer.h
@@ -34,8 +34,6 @@ struct RingBuffer {
al::FlexArray<al::byte, 16> mBuffer;
RingBuffer(const size_t count) : mBuffer{count} { }
- RingBuffer(const RingBuffer&) = delete;
- RingBuffer& operator=(const RingBuffer&) = delete;
/** Reset the read and write pointers to zero. This is not thread safe. */
void reset() noexcept;
@@ -84,7 +82,7 @@ struct RingBuffer {
/** Advance the write pointer `cnt' places. */
void writeAdvance(size_t cnt) noexcept;
- DEF_PLACE_NEWDEL()
+ DEF_FAM_NEWDEL(RingBuffer, mBuffer)
};
using RingBufferPtr = std::unique_ptr<RingBuffer>;