mirror of
https://github.com/g-truc/glm.git
synced 2025-04-04 21:15:03 +00:00
Fix compilation
This commit is contained in:
parent
cd4dfd0bbd
commit
6dad883323
1 changed files with 4 additions and 3 deletions
|
@ -22,6 +22,7 @@
|
|||
#endif
|
||||
|
||||
#include "../gtc/type_ptr.hpp"
|
||||
#include <type_traits>
|
||||
#include "type_trait.hpp"
|
||||
|
||||
namespace glm
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/// @}
|
||||
|
|
Loading…
Add table
Reference in a new issue