Skip to content
Snippets Groups Projects
Commit 0028acdb authored by Fabian Tërnava's avatar Fabian Tërnava
Browse files

fix copy of parameter pack

parent bf28e9e5
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ namespace armarx
// capture params in new lambda
// (https://stackoverflow.com/questions/47496358/c-lambdas-how-to-capture-variadic-parameter-pack-from-the-upper-scope)
auto createS = [... args = std::forward<Args>(args)]()
{ return std::make_unique<_Skill>(std::forward<Args>(args)...); };
{ return std::make_unique<_Skill>(args...); };
auto ret = std::make_unique<SkillFactory>(createS);
return ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment