summaryrefslogtreecommitdiff
path: root/zen/ring_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/ring_buffer.h')
-rw-r--r--zen/ring_buffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zen/ring_buffer.h b/zen/ring_buffer.h
index 8cce8e80..a8d629c6 100644
--- a/zen/ring_buffer.h
+++ b/zen/ring_buffer.h
@@ -210,7 +210,7 @@ private:
RingBuffer (const RingBuffer&) = delete; //wait until there is a reason to copy a RingBuffer
RingBuffer& operator=(const RingBuffer&) = delete; //
- RingBuffer(size_t capacity) :
+ explicit RingBuffer(size_t capacity) :
rawMem_(static_cast<std::byte*>(::operator new (capacity * sizeof(T)))), //throw std::bad_alloc
capacity_(capacity) {}
bgstack15