diff --git a/src/osgEarthCesium/TaskProcessor.cpp b/src/osgEarthCesium/TaskProcessor.cpp index 30f92120ce..7b9d5826de 100644 --- a/src/osgEarthCesium/TaskProcessor.cpp +++ b/src/osgEarthCesium/TaskProcessor.cpp @@ -21,6 +21,7 @@ */ #include "TaskProcessor" #include +#include using namespace osgEarth; using namespace osgEarth::Threading; @@ -51,7 +52,7 @@ void TaskProcessor::shutdown() void TaskProcessor::startTask(std::function f) { - auto task = [this, f](Cancelable&) { + auto task = [this, f]() { f(); return true; };