From 55519b5e31e10b4ae064c4b6fe52fb2a3bb2ae3f Mon Sep 17 00:00:00 2001 From: Lynix Date: Sat, 2 May 2015 09:57:33 +0200 Subject: [PATCH] Ndk/Component: Modified comment and error messages Former-commit-id: 6a5fad6d2b7e3c1dbc58df0a1614012eee4df2b7 --- SDK/include/NDK/BaseSystem.inl | 1 - SDK/include/NDK/Component.inl | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) 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); }