浏览代码

More std trivial experiments #263

Christophe Riccio 11 年之前
父节点
当前提交
a2a6037ba5
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      glm/detail/type_vec4.hpp
  2. 1 0
      test/core/core_type_vec4.cpp

+ 1 - 0
glm/detail/type_vec4.hpp

@@ -158,6 +158,7 @@ namespace detail
 		GLM_FUNC_DECL explicit tvec4(ctor);
 		GLM_FUNC_DECL explicit tvec4(ctor);
 		GLM_FUNC_DECL explicit tvec4(T const & s);
 		GLM_FUNC_DECL explicit tvec4(T const & s);
 		GLM_FUNC_DECL tvec4(T const & s0, T const & s1, T const & s2, T const & s3);
 		GLM_FUNC_DECL tvec4(T const & s0, T const & s1, T const & s2, T const & s3);
+		GLM_FUNC_DECL ~tvec4(){}
 
 
 		//////////////////////////////////////
 		//////////////////////////////////////
 		// Conversion scalar constructors
 		// Conversion scalar constructors

+ 1 - 0
test/core/core_type_vec4.cpp

@@ -47,6 +47,7 @@ int test_vec4_ctor()
 	glm::ivec4 B(A);
 	glm::ivec4 B(A);
 	Error += glm::all(glm::equal(A, B)) ? 0 : 1;
 	Error += glm::all(glm::equal(A, B)) ? 0 : 1;
 
 
+	Error += std::is_trivially_default_constructible<glm::vec4>::value ? 0 : 1;
 	Error += std::is_trivially_copy_assignable<glm::vec4>::value ? 0 : 1;
 	Error += std::is_trivially_copy_assignable<glm::vec4>::value ? 0 : 1;
 	Error += std::is_trivially_copyable<glm::vec4>::value ? 0 : 1;
 	Error += std::is_trivially_copyable<glm::vec4>::value ? 0 : 1;
 	Error += std::is_trivially_copy_assignable<glm::vec3>::value ? 0 : 1;
 	Error += std::is_trivially_copy_assignable<glm::vec3>::value ? 0 : 1;