diff --git a/SDK/include/NDK/BaseSystem.inl b/SDK/include/NDK/BaseSystem.inl index 7c688138b..6c4ac16cd 100644 --- a/SDK/include/NDK/BaseSystem.inl +++ b/SDK/include/NDK/BaseSystem.inl @@ -132,5 +132,4 @@ namespace Ndk { // Rien à faire } - } diff --git a/SDK/include/NDK/Component.inl b/SDK/include/NDK/Component.inl index 4715e8d7d..b016fd8be 100644 --- a/SDK/include/NDK/Component.inl +++ b/SDK/include/NDK/Component.inl @@ -20,7 +20,7 @@ namespace Ndk BaseComponent* Component::Clone() const { ///FIXME: Pas encore supporté par GCC (4.9.2) - //static_assert(std::is_trivially_copy_constructible::value, "ComponentType should be copy-constructible"); + //static_assert(std::is_trivially_copy_constructible::value, "ComponentType must be copy-constructible"); return new ComponentType(static_cast(*this)); } @@ -29,7 +29,7 @@ namespace Ndk ComponentIndex Component::RegisterComponent(ComponentId id) { // Il faut que notre composant possède un constructeur par défaut (pour la factory) - static_assert(std::is_default_constructible::value, "ComponentType should be default-constructible"); + static_assert(std::is_default_constructible::value, "ComponentType must be default-constructible"); // On utilise les lambda pour créer une fonction factory auto factory = []() -> BaseComponent* @@ -37,8 +37,6 @@ namespace Ndk return new ComponentType; }; - // Je ne sais pas si c'est un bug de GCC ou si c'est quelque chose que j'ai mal compris - // mais le fait est que ça ne compile pas si je ne précise pas Basecomponent:: return BaseComponent::RegisterComponent(id, factory); }