Fixed Syntax error when compiling with GLM_FORCE_CTOR_INIT and GLM_ENABLE_EXPERIMENTAL #753

This commit is contained in:
Christophe Riccio 2018-05-07 10:37:37 +02:00
parent b5632f5a18
commit 798ab30b9d
2 changed files with 3 additions and 2 deletions

View File

@ -28,8 +28,8 @@ namespace glm
template<typename T, qualifier Q>
GLM_FUNC_QUALIFIER GLM_CONSTEXPR tdualquat<T, Q>::tdualquat()
# ifdef GLM_FORCE_CTOR_INIT
: real(tquat<T, P>())
, dual(tquat<T, P>(0, 0, 0, 0))
: real(tquat<T, Q>())
, dual(tquat<T, Q>(0, 0, 0, 0))
# endif
{}
# endif

View File

@ -1,4 +1,5 @@
#define GLM_ENABLE_EXPERIMENTAL
#define GLM_FORCE_CTOR_INIT
#include <glm/gtx/dual_quaternion.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/epsilon.hpp>