From 75eb79768674c6a3fca809cbfc8a57ba2f24f280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 15 Jul 2015 01:10:55 +0200 Subject: [PATCH] Math: make the Doxygen workaround more obvious and less verbose. --- src/Magnum/Math/DualQuaternion.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Magnum/Math/DualQuaternion.h b/src/Magnum/Math/DualQuaternion.h index 6525c9992..ccebf2dbe 100644 --- a/src/Magnum/Math/DualQuaternion.h +++ b/src/Magnum/Math/DualQuaternion.h @@ -109,11 +109,12 @@ template class DualQuaternion: public Dual> { * \hat q = [\boldsymbol 0, 1] + \epsilon [\boldsymbol 0, 0] * @f] */ - #ifdef DOXYGEN_GENERATING_OUTPUT - constexpr /*implicit*/ DualQuaternion(IdentityInitT = IdentityInit); - #else - constexpr /*implicit*/ DualQuaternion(IdentityInitT = IdentityInit): Dual>({}, {{}, T(0)}) {} - #endif + constexpr /*implicit*/ DualQuaternion(IdentityInitT = IdentityInit) + /** @todoc remove workaround when doxygen is sane */ + #ifndef DOXYGEN_GENERATING_OUTPUT + : Dual>({}, {{}, T(0)}) + #endif + {} /** @brief Construct zero-initialized dual quaternion */ constexpr explicit DualQuaternion(ZeroInitT)