diff --git a/pxr/base/work/detachedTask.h b/pxr/base/work/detachedTask.h index 876fee68c9..b4b3023bbf 100644 --- a/pxr/base/work/detachedTask.h +++ b/pxr/base/work/detachedTask.h @@ -41,7 +41,7 @@ struct Work_DetachedTask { explicit Work_DetachedTask(Fn &&fn) : _fn(std::move(fn)) {} explicit Work_DetachedTask(Fn const &fn) : _fn(fn) {} - void operator()() { + void operator()() const { TfErrorMark m; _fn(); m.Clear();