浏览代码

Fixed missing typename

Christophe Riccio 12 年之前
父节点
当前提交
1839858465
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      glm/gtc/half_float.inl

+ 4 - 4
glm/gtc/half_float.inl

@@ -339,7 +339,7 @@ namespace detail
 	template <precision P>
 	GLM_FUNC_QUALIFIER half & tvec3<half, P>::operator[]
 	(
-		tvec3<half, P>::size_type i
+		typename tvec3<half, P>::size_type i
 	)
 	{
 		assert(i < this->length());
@@ -350,7 +350,7 @@ namespace detail
 	template <precision P>
 	GLM_FUNC_QUALIFIER half const & tvec3<half, P>::operator[]
 	(
-		tvec3<half, P>::size_type i
+		typename tvec3<half, P>::size_type i
 	) const
 	{
 		assert(i < this->length());
@@ -681,7 +681,7 @@ namespace detail
 	template <precision P>
 	GLM_FUNC_QUALIFIER half & tvec4<half, P>::operator[]
 	(
-		tvec4<half, P>::size_type i
+		typename tvec4<half, P>::size_type i
 	)
 	{
 		assert(i < this->length());
@@ -692,7 +692,7 @@ namespace detail
 	template <precision P>
 	GLM_FUNC_QUALIFIER half const & tvec4<half, P>::operator[]
 	(
-		tvec4<half, P>::size_type i
+		typename tvec4<half, P>::size_type i
 	) const
 	{
 		assert(i < this->length());