diff --git a/include/Nazara/Utility/Algorithm.hpp b/include/Nazara/Utility/Algorithm.hpp index aadec8aaa..9c275021d 100644 --- a/include/Nazara/Utility/Algorithm.hpp +++ b/include/Nazara/Utility/Algorithm.hpp @@ -67,7 +67,7 @@ namespace Nz NAZARA_UTILITY_API void TransformVertices(VertexPointers vertexPointers, unsigned int vertexCount, const Matrix4f& matrix); template constexpr ComponentType ComponentTypeId(); - template constexpr const ComponentType GetComponentTypeOf(); + template constexpr ComponentType GetComponentTypeOf(); } #include diff --git a/include/Nazara/Utility/Algorithm.inl b/include/Nazara/Utility/Algorithm.inl index 61bdb9e77..cc0a4fdc7 100644 --- a/include/Nazara/Utility/Algorithm.inl +++ b/include/Nazara/Utility/Algorithm.inl @@ -36,7 +36,7 @@ namespace Nz template<> constexpr ComponentType ComponentTypeId() { return ComponentType_Quaternion; } template - constexpr const ComponentType GetComponentTypeOf() + constexpr ComponentType GetComponentTypeOf() { return ComponentTypeId>(); }