Browse Source

Hide into detail namespace SIMD internal

Christophe Riccio 11 years ago
parent
commit
0acc67df40
1 changed files with 6 additions and 4 deletions
  1. 6 4
      glm/detail/type_vec4.hpp

+ 6 - 4
glm/detail/type_vec4.hpp

@@ -40,7 +40,8 @@
 #endif //GLM_SWIZZLE
 #endif //GLM_SWIZZLE
 #include <cstddef>
 #include <cstddef>
 
 
-namespace glm
+namespace glm{
+namespace detail
 {
 {
 	template <typename T>
 	template <typename T>
 	struct simd
 	struct simd
@@ -63,7 +64,8 @@ namespace glm
 			typedef __m256d type;
 			typedef __m256d type;
 		};
 		};
 #	endif
 #	endif
-	
+}//namespace detail
+
 	template <typename T, precision P>
 	template <typename T, precision P>
 	struct tvec4
 	struct tvec4
 	{
 	{
@@ -92,7 +94,7 @@ namespace glm
 #		if GLM_HAS_ANONYMOUS_UNION
 #		if GLM_HAS_ANONYMOUS_UNION
 			union
 			union
 			{
 			{
-				typename simd<T>::type data;
+				typename detail::simd<T>::type data;
 				struct { T r, g, b, a; };
 				struct { T r, g, b, a; };
 				struct { T s, t, p, q; };
 				struct { T s, t, p, q; };
 				struct { T x, y, z, w;};
 				struct { T x, y, z, w;};
@@ -113,7 +115,7 @@ namespace glm
 #			if GLM_HAS_UNRESTRICTED_UNIONS
 #			if GLM_HAS_UNRESTRICTED_UNIONS
 				union
 				union
 				{
 				{
-					typename simd<T>::type data;
+					typename detail::simd<T>::type data;
 					struct
 					struct
 					{
 					{
 						union { T x, r, s; };
 						union { T x, r, s; };