From 49559402cf23393709851a5f76b6e8add94c141f Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 18 Nov 2017 19:50:22 -0800 Subject: [PATCH] Add a virtual destructor for ThreadedQueue --- src/threaded_queue.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/threaded_queue.h b/src/threaded_queue.h index 01505724..0a52b771 100644 --- a/src/threaded_queue.h +++ b/src/threaded_queue.h @@ -16,6 +16,7 @@ using std::experimental::optional; struct BaseThreadQueue { virtual bool IsEmpty() = 0; + virtual ~BaseThreadQueue() = default; }; struct MultiQueueWaiter {