summaryrefslogtreecommitdiff
path: root/zen/ring_buffer.h
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-05-17 11:17:28 -0400
committerB Stack <bgstack15@gmail.com>2020-05-17 11:17:28 -0400
commitf0f3f094c5fa05bafe1963d1ea13f1be39a6673b (patch)
tree1f52055b2f26fc2389d3ab4eb8d8d1e234a6316a /zen/ring_buffer.h
parentMerge branch '10.23' into 'master' (diff)
downloadFreeFileSync-f0f3f094c5fa05bafe1963d1ea13f1be39a6673b.tar.gz
FreeFileSync-f0f3f094c5fa05bafe1963d1ea13f1be39a6673b.tar.bz2
FreeFileSync-f0f3f094c5fa05bafe1963d1ea13f1be39a6673b.zip
add upstream 10.24
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