Fix compilation on macOS by adding virtual destructors (#3878)

This commit is contained in:
Philipp Moritz
2019-01-28 13:22:52 -08:00
committed by Robert Nishihara
parent f7415b37c5
commit 0aadf11c10
+6
View File
@@ -49,6 +49,9 @@ enum class TaskState {
class TaskQueue {
public:
/// TaskQueue destructor.
virtual ~TaskQueue() {}
/// \brief Append a task to queue.
///
/// \param task_id The task ID for the task to append.
@@ -103,6 +106,9 @@ class ReadyQueue : public TaskQueue {
ReadyQueue(const ReadyQueue &other) = delete;
/// ReadyQueue destructor.
virtual ~ReadyQueue() {}
/// \brief Append a task to queue.
///
/// \param task_id The task ID for the task to append.