mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Forward arguments and mark T::JobModel as dependent name
This commit is contained in:
parent
39269f12ec
commit
c19b457401
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ public:
|
|||
|
||||
// Queue a new job to the task; returns the job's index
|
||||
template <class T, class... A> size_t addJob(std::string name, A&&... args) {
|
||||
_jobs.emplace_back(name, std::make_shared<T::JobModel>(args...));
|
||||
_jobs.emplace_back(name, std::make_shared<typename T::JobModel>(std::forward<A>(args)...));
|
||||
return _jobs.size() - 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue