From 798ab30b9d83e353bd7acb9cca05aa832109ca59 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Mon, 7 May 2018 10:37:37 +0200 Subject: [PATCH] Fixed Syntax error when compiling with GLM_FORCE_CTOR_INIT and GLM_ENABLE_EXPERIMENTAL #753 --- glm/gtx/dual_quaternion.inl | 4 ++-- test/gtx/gtx_dual_quaternion.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/glm/gtx/dual_quaternion.inl b/glm/gtx/dual_quaternion.inl index f5c1da08..5c82b882 100644 --- a/glm/gtx/dual_quaternion.inl +++ b/glm/gtx/dual_quaternion.inl @@ -28,8 +28,8 @@ namespace glm template GLM_FUNC_QUALIFIER GLM_CONSTEXPR tdualquat::tdualquat() # ifdef GLM_FORCE_CTOR_INIT - : real(tquat()) - , dual(tquat(0, 0, 0, 0)) + : real(tquat()) + , dual(tquat(0, 0, 0, 0)) # endif {} # endif diff --git a/test/gtx/gtx_dual_quaternion.cpp b/test/gtx/gtx_dual_quaternion.cpp index 1e868744..ceedc2c2 100644 --- a/test/gtx/gtx_dual_quaternion.cpp +++ b/test/gtx/gtx_dual_quaternion.cpp @@ -1,4 +1,5 @@ #define GLM_ENABLE_EXPERIMENTAL +#define GLM_FORCE_CTOR_INIT #include #include #include