diff --git a/source/RobotAPI/libraries/skills/provider/SkillFactory.h b/source/RobotAPI/libraries/skills/provider/SkillFactory.h index ea4cd5edbff7130b560e7725fc57cda70841612d..e63fb4a3ce6171be6d48b705a8bffd91603e7d66 100644 --- a/source/RobotAPI/libraries/skills/provider/SkillFactory.h +++ b/source/RobotAPI/libraries/skills/provider/SkillFactory.h @@ -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;