From 480dc4d1fb5fc0d16b094ca36f81ccdbf9f0a6cb Mon Sep 17 00:00:00 2001 From: Tamas Kenez Date: Thu, 11 Dec 2025 23:23:41 +0100 Subject: [PATCH] Add override to overridden dtors --- concurrentqueue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/concurrentqueue.h b/concurrentqueue.h index 2fc77540..ae0a727f 100644 --- a/concurrentqueue.h +++ b/concurrentqueue.h @@ -1785,7 +1785,7 @@ class ConcurrentQueue new_block_index(0); // This creates an index with double the number of current entries, i.e. EXPLICIT_INITIAL_INDEX_SIZE } - ~ExplicitProducer() + ~ExplicitProducer() override { // Destruct any elements not yet dequeued. // Since we're in the destructor, we can assume all elements @@ -2428,7 +2428,7 @@ class ConcurrentQueue new_block_index(); } - ~ImplicitProducer() + ~ImplicitProducer() override { // Note that since we're in the destructor we can assume that all enqueue/dequeue operations // completed already; this means that all undequeued elements are placed contiguously across