Final VS fixes
Former-commit-id: 6da44f94127f61de39710a52b8b3b73ce19c1269
This commit is contained in:
@@ -35,7 +35,7 @@ namespace Ndk
|
||||
template<typename SystemType, typename... Args>
|
||||
SystemType& World::AddSystem(Args&&... args)
|
||||
{
|
||||
static_assert(std::is_base_of<BaseSystem, SystemType>(), "SystemType is not a component");
|
||||
static_assert(std::is_base_of<BaseSystem, SystemType>::value, "SystemType is not a component");
|
||||
|
||||
// Allocation et affectation du component
|
||||
std::unique_ptr<SystemType> ptr(new SystemType(std::forward(args)...));
|
||||
@@ -73,7 +73,7 @@ namespace Ndk
|
||||
SystemType& World::GetSystem()
|
||||
{
|
||||
///DOC: Le système doit être présent
|
||||
static_assert(std::is_base_of<BaseSystem, SystemType>(), "SystemType is not a system");
|
||||
static_assert(std::is_base_of<BaseSystem, SystemType>::value, "SystemType is not a system");
|
||||
|
||||
SystemIndex index = GetSystemIndex<SystemType>();
|
||||
return static_cast<SystemType&>(GetSystem(index));
|
||||
|
||||
Reference in New Issue
Block a user