Add virtual destructor to TaskDispatcher.

This removes a GCC warning about that missing while virtual functions exist.
This commit is contained in:
leper 2017-05-04 03:22:19 +02:00
parent e85d851cd9
commit 78054e977b

View File

@ -380,6 +380,8 @@ namespace nvtt
// (New in NVTT 2.1) // (New in NVTT 2.1)
struct TaskDispatcher struct TaskDispatcher
{ {
virtual ~TaskDispatcher() {}
virtual void dispatch(Task * task, void * context, int count) = 0; virtual void dispatch(Task * task, void * context, int count) = 0;
}; };