From a2a6037ba545869f0988e98dae262bf64d0514b1 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Tue, 4 Nov 2014 01:06:16 +0100 Subject: [PATCH] More std trivial experiments #263 --- glm/detail/type_vec4.hpp | 1 + test/core/core_type_vec4.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/glm/detail/type_vec4.hpp b/glm/detail/type_vec4.hpp index eae3d3e4..13da72b5 100644 --- a/glm/detail/type_vec4.hpp +++ b/glm/detail/type_vec4.hpp @@ -158,6 +158,7 @@ namespace detail GLM_FUNC_DECL explicit tvec4(ctor); 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(){} ////////////////////////////////////// // Conversion scalar constructors diff --git a/test/core/core_type_vec4.cpp b/test/core/core_type_vec4.cpp index 4a308883..17813ce7 100644 --- a/test/core/core_type_vec4.cpp +++ b/test/core/core_type_vec4.cpp @@ -47,6 +47,7 @@ int test_vec4_ctor() glm::ivec4 B(A); Error += glm::all(glm::equal(A, B)) ? 0 : 1; + Error += std::is_trivially_default_constructible::value ? 0 : 1; Error += std::is_trivially_copy_assignable::value ? 0 : 1; Error += std::is_trivially_copyable::value ? 0 : 1; Error += std::is_trivially_copy_assignable::value ? 0 : 1;