Sdk/World: Fix compilation error when submitting arguments on system creation
Former-commit-id: a5ace06c0f4c0d7378fb81694db8db1d9f57b33d [formerly 2a232722761dfb72bbd9f3dc9ba8353d65311e7d] Former-commit-id: f6a65203b37acb49276e22cad0bab4ff7075eb3a
This commit is contained in:
parent
14541deb76
commit
94ed1cca32
|
|
@ -44,7 +44,7 @@ namespace Ndk
|
||||||
static_assert(std::is_base_of<BaseSystem, SystemType>::value, "SystemType is not a component");
|
static_assert(std::is_base_of<BaseSystem, SystemType>::value, "SystemType is not a component");
|
||||||
|
|
||||||
// Allocation et affectation du component
|
// Allocation et affectation du component
|
||||||
std::unique_ptr<SystemType> ptr(new SystemType(std::forward(args)...));
|
std::unique_ptr<SystemType> ptr(new SystemType(std::forward<Args>(args)...));
|
||||||
return static_cast<SystemType&>(AddSystem(std::move(ptr)));
|
return static_cast<SystemType&>(AddSystem(std::move(ptr)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue