Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
AbitTheGray committed Nov 25, 2024
1 parent c144218 commit 296f6d7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions glm/gtx/range.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#endif

#include "../gtc/type_ptr.hpp"
#include <type_traits>
#include "type_trait.hpp"

namespace glm
Expand All @@ -38,7 +39,7 @@ namespace glm
template<typename genType>
/*GLM_DEPRECATED*/ GLM_NODISCARD GLM_FUNC_QUALIFIER GLM_CONSTEXPR length_t components(genType const& v)
{
return type<std::remove_cv<genType>::type>::elements;
return type<genType>::elements;
}

#if GLM_COMPILER & GLM_COMPILER_VC
Expand All @@ -54,7 +55,7 @@ namespace glm
template<typename genType>
GLM_NODISCARD GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename genType::value_type const * end(genType const& v)
{
return begin(v) + type<std::remove_cv<genType>::type>::elements;
return begin(v) + type<genType>::elements;
}

template<typename genType>
Expand All @@ -66,7 +67,7 @@ namespace glm
template<typename genType>
GLM_NODISCARD GLM_FUNC_QUALIFIER GLM_CONSTEXPR typename genType::value_type * end(genType& v)
{
return begin(v) + type<std::remove_cv<genType>::type>::elements;
return begin(v) + type<genType>::elements;
}

/// @}
Expand Down

0 comments on commit 296f6d7

Please sign in to comment.