All *mat* types are copyable #263

This commit is contained in:
Christophe Riccio
2014-11-10 01:16:48 +01:00
parent 838bdee3c3
commit ee84420f6c
20 changed files with 25 additions and 193 deletions

View File

@@ -188,7 +188,11 @@ int test_ctr()
{
int Error(0);
Error += std::is_copy_constructible<glm::mat4>::value ? 0 : 1;
//Error += std::is_trivially_default_constructible<glm::mat4>::value ? 0 : 1;
//Error += std::is_trivially_copy_assignable<glm::mat4>::value ? 0 : 1;
Error += std::is_trivially_copyable<glm::mat4>::value ? 0 : 1;
//Error += std::is_copy_constructible<glm::mat4>::value ? 0 : 1;
//Error += std::has_trivial_copy_constructor<glm::mat4>::value ? 0 : 1;
#if(GLM_HAS_INITIALIZER_LISTS)
glm::mat4 m0(

View File

@@ -47,11 +47,11 @@ int test_vec4_ctor()
glm::ivec4 B(A);
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_default_constructible<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_copy_assignable<glm::vec3>::value ? 0 : 1;
Error += std::is_trivially_copyable<glm::vec3>::value ? 0 : 1;
// Error += std::is_trivially_copy_assignable<glm::vec3>::value ? 0 : 1;
// Error += std::is_trivially_copyable<glm::vec3>::value ? 0 : 1;
Error += std::has_trivial_copy_constructor<glm::vec4>::value ? 0 : 1;
Error += std::is_copy_constructible<glm::vec4>::value ? 0 : 1;